heartbeat_nopriv_received
Filters Heartbeat Ajax response in no-privilege environments.
Usage
add_filter( 'heartbeat_nopriv_received', 'wp_kama_heartbeat_nopriv_received_filter', 10, 3 ); /** * Function for `heartbeat_nopriv_received` filter-hook. * * @param array $response The no-priv Heartbeat response. * @param array $data The $_POST data sent. * @param string $screen_id The screen ID. * * @return array */ function wp_kama_heartbeat_nopriv_received_filter( $response, $data, $screen_id ){ // filter... return $response; }
- $response(array)
- The no-priv Heartbeat response.
- $data(array)
- The $_POST data sent.
- $screen_id(string)
- The screen ID.
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
wp-admin/includes/ajax-actions.php 43
$response = apply_filters( 'heartbeat_nopriv_received', $response, $data, $screen_id );