wp_refresh_nonces

wp_refresh_nonces

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_refresh_nonces') is found 1 times:

  • /wp-admin/includes/ajax-actions.php line 3484
    		 * @param array  $response  The Heartbeat response.
    		 * @param array  $data      The $_POST data sent.
    		 * @param string $screen_id The screen ID.
    		 */
    		$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );
    
    		if ( false === $nonce_state ) {
    			// User is logged in but nonces have expired.
    			$response['nonces_expired'] = true;
    			wp_send_json( $response );
    		}
    

See this hook used in plugins: