wp_refresh_nonces filter-hook . WP 4.3.0
Filters the nonces to send to the New/Edit Post screen.
Usage
add_filter( 'wp_refresh_nonces', 'filter_function_name_4551', 10, 3 ); function filter_function_name_4551( $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-admin/includes/ajax-actions.php 3380
$response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id );
Where in WP core the hook is used WordPress
wp-admin/includes/ajax-actions.php 70
add_filter( 'wp_refresh_nonces', 'wp_refresh_post_nonces', 10, 3 );
wp-admin/includes/ajax-actions.php 71
add_filter( 'wp_refresh_nonces', 'wp_refresh_heartbeat_nonces' );