wp_refresh_nonces filter-hookWP 4.3.0

Filters the nonces to send to the New/Edit Post screen.

Usage

add_filter( 'wp_refresh_nonces', 'wp_kama_refresh_nonces_filter', 10, 3 );

/**
 * Function for `wp_refresh_nonces` filter-hook.
 * 
 * @param array  $response  The Heartbeat response.
 * @param array  $data      The $_POST data sent.
 * @param string $screen_id The screen ID.
 *
 * @return array
 */
function wp_kama_refresh_nonces_filter( $response, $data, $screen_id ){

	// filter...
	return $response;
}
$response(array)
The Heartbeat response.
$data(array)
The $_POST data sent.
$screen_id(string)
The screen ID.

Changelog

Since 4.3.0 Introduced.

Where the hook is called

wp_ajax_heartbeat()
wp_refresh_nonces
wp-admin/includes/ajax-actions.php 3484
$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );

Where the hook is used in WordPress

wp-admin/includes/admin-filters.php 83
add_filter( 'wp_refresh_nonces', 'wp_refresh_post_nonces', 10, 3 );
wp-admin/includes/admin-filters.php 84
add_filter( 'wp_refresh_nonces', 'wp_refresh_metabox_loader_nonces', 10, 2 );
wp-admin/includes/admin-filters.php 85
add_filter( 'wp_refresh_nonces', 'wp_refresh_heartbeat_nonces' );