Choice_Element_Type_Interface::get_choices_for_field( awsmug\Torro_Forms\DB_Objects\Elements\Element $element, string $field = '' )

Returns the available choices for a specific field.

Description

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

Changelog
Version Description
1.0.0 Introduced.