Returns the available choices for a specific field.
Description
See also
Parameters
- $element
-
(awsmug\Torro_Forms\DB_Objects\Elements\Element) (Required) Element to get choices for.
- $field
-
(string) (Optional) Element field for which to get choices. Default empty string (main field).
Default value: ''
Return
(array) Array of choices.
Source
File: src/db-objects/elements/element-types/choice-element-type-interface.php
public function get_choices_for_field( $element, $field = '' );
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |