check_admin_referer

check_admin_referer

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('check_admin_referer') is found 1 times:

  • /wp-includes/pluggable.php line 1290
    		 * @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.
    		 */
    		do_action( 'check_admin_referer', $action, $result );
    
    		if ( ! $result && ! ( -1 === $action && str_starts_with( $referer, $adminurl ) ) ) {
    			wp_nonce_ays( $action );
    			die();
    		}
    
    

See this hook used in plugins: