check_ajax_referer хук-событиеWP 2.1.0

Fires once the Ajax request has been validated or not.

Использование

add_action( 'check_ajax_referer', 'wp_kama_check_ajax_referer_action', 10, 2 );

/**
 * Function for `check_ajax_referer` action-hook.
 * 
 * @param string    $action The Ajax nonce action.
 * @param false|int $result False if the nonce is invalid, 1 if the nonce is valid and generated between
0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
 *
 * @return void
 */
function wp_kama_check_ajax_referer_action( $action, $result ){

	// action...
}
$action(строка)
The Ajax nonce action.
$result(false|int)
False if the nonce is invalid, 1 if the nonce is valid and generated between
0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.

Список изменений

С версии 2.1.0 Введена.

Где вызывается хук

check_ajax_referer()
check_ajax_referer
wp-includes/pluggable.php 1329
do_action( 'check_ajax_referer', $action, $result );

Где используется хук в WordPress

Использование не найдено.