ACF_Ajax::request() public ACF 5.7.2
Callback for ajax action. Sets up properties and calls the get_response() function.
{} Это метод класса: ACF_Ajax{}
Хуков нет.
Возвращает
null.
Использование
$ACF_Ajax = new ACF_Ajax(); $ACF_Ajax->request();
Список изменений
С версии 5.7.2 | Введена. |
Код ACF_Ajax::request() ACF Ajax::request ACF 5.9.1
function request() {
// Store data for has() and get() functions.
$this->request = wp_unslash($_REQUEST);
// Verify request and handle error.
$error = $this->verify_request( $this->request );
if( is_wp_error( $error ) ) {
$this->send( $error );
}
// Send response.
$this->send( $this->get_response( $this->request ) );
}