acf_field_oembed::ajax_query
Returns AJAX results for the oEmbed field.
Метод класса: acf_field_oembed{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$acf_field_oembed = new acf_field_oembed(); $acf_field_oembed->ajax_query();
Список изменений
| С версии 5.0.0 | Введена. |
Код acf_field_oembed::ajax_query() acf field oembed::ajax query ACF 6.4.2
public function ajax_query() {
$args = acf_request_args(
array(
'nonce' => '',
'field_key' => '',
)
);
if ( ! acf_verify_ajax( $args['nonce'], $args['field_key'], true ) ) {
die();
}
wp_send_json( $this->get_ajax_query( $_POST ) );
}