acf_get_select_input()
acf_select_input
Returns the HTML of a select input.
Хуков нет.
Возвращает
Строку.
Использование
acf_get_select_input( $attrs );
- $attrs(массив)
- The array of attrs.
По умолчанию:array()
Список изменений
| С версии 5.0.0 | Введена. |
Код acf_get_select_input() acf get select input ACF 6.4.2
function acf_get_select_input( $attrs = array() ) {
$value = (array) acf_extract_var( $attrs, 'value' );
$choices = (array) acf_extract_var( $attrs, 'choices' );
return sprintf(
'<select %s>%s</select>',
acf_esc_attrs( $attrs ),
acf_walk_select_input( $choices, $value )
);
}