ACF_Ajax::send()
send
Sends back JSON based on the $response as either success or failure.
Метод класса: ACF_Ajax{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$ACF_Ajax = new ACF_Ajax(); $ACF_Ajax->send( $response );
- $response(разное) (обязательный)
- The response to send back.
Список изменений
С версии 5.7.2 | Введена. |
Код ACF_Ajax::send() ACF Ajax::send ACF 6.0.4
function send( $response ) { // Return error. if ( is_wp_error( $response ) ) { $this->send_error( $response ); // Return success. } else { wp_send_json( $response ); } }