Skip to main content

get_select_choices()

public static function get_select_choices( $field, $value='', $support_placeholders=true )

Returns the choicse markup for the given field.

Since:

  • unknown
  • 3.0 (Updated to use GF_Field::get_choice_option_value().)

Source: common.php:3652

Parameters

NameTypeDefaultDescription
$fieldGF_Field_SelectThe field the markup is for.
$valuestring | string[]''The selected choice(s)
$support_placeholdersbooltrueIndicates if the field supports placeholders.

Returns

  • string