acf_field_relationship::ajax_query() public ACF 5.0.0
description
{} Это метод класса: acf_field_relationship{}
Хуков нет.
Возвращает
$post_id. (int)
Использование
$acf_field_relationship = new acf_field_relationship(); $acf_field_relationship->ajax_query();
- (int)($post_id) (обязательный)
Список изменений
С версии 5.0.0 | Введена. |
Код acf_field_relationship::ajax_query() acf field relationship::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);
}