ACF_Ajax::request
request
Callback for ajax action. Sets up properties and calls the get_response() function.
Метод класса: ACF_Ajax{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ACF_Ajax = new ACF_Ajax(); $ACF_Ajax->request();
Список изменений
| С версии 5.7.2 | Введена. |
Код ACF_Ajax::request() ACF Ajax::request ACF 6.8.8
function request() {
// Store data for has() and get() functions.
$this->request = wp_unslash( $_REQUEST ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Verified below in verify_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 ) );
}