check_admin_referer action-hookWP 1.5.1

Fires once the admin request has been validated or not.

Usage

add_action( 'check_admin_referer', 'wp_kama_check_admin_referer_action', 10, 2 );

/**
 * Function for `check_admin_referer` action-hook.
 * 
 * @param string    $action The 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_admin_referer_action( $action, $result ){

	// action...
}
$action(string)
The 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.

Changelog

Since 1.5.1 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.