acf_field_select::ajax_query() public ACF 5.0.0
description
{} Это метод класса: acf_field_select{}
Хуков нет.
Возвращает
$post_id. (int)
Использование
$acf_field_select = new acf_field_select(); $acf_field_select->ajax_query();
- (int)($post_id) (обязательный)
Список изменений
С версии 5.0.0 | Введена. |
Код acf_field_select::ajax_query() acf field select::ajax query ACF 5.9.1
function ajax_query() {
// validate
if( !acf_verify_ajax() ) die();
// get choices
$response = $this->get_ajax_query( $_POST );
// return
acf_send_ajax_results($response);
}