acf_field_clone::get_clone_setting_choices
This function will return an array of choices data for Select2
Метод класса: acf_field_clone{}
Хуков нет.
Возвращает
(Массив).
Использование
$acf_field_clone = new acf_field_clone(); $acf_field_clone->get_clone_setting_choices( $value );
- $value(обязательный)
- .
Список изменений
| С версии 5.3.8 | Введена. |
Код acf_field_clone::get_clone_setting_choices() acf field clone::get clone setting choices ACF 6.4.2
function get_clone_setting_choices( $value ) {
// vars
$choices = array();
// bail early if no $value
if ( empty( $value ) ) {
return $choices;
}
// force value to array
$value = acf_get_array( $value );
// loop
foreach ( $value as $v ) {
$choices[ $v ] = $this->get_clone_setting_choice( $v );
}
// return
return $choices;
}