heartbeat_send
Filters the Heartbeat response sent.
Usage
add_filter( 'heartbeat_send', 'wp_kama_heartbeat_send_filter', 10, 2 ); /** * Function for `heartbeat_send` filter-hook. * * @param array $response The Heartbeat response. * @param string $screen_id The screen ID. * * @return array */ function wp_kama_heartbeat_send_filter( $response, $screen_id ){ // filter... return $response; }
- $response(array)
- The Heartbeat response.
- $screen_id(string)
- The screen ID.
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
wp-admin/includes/ajax-actions.php 3505
$response = apply_filters( 'heartbeat_send', $response, $screen_id );
Where the hook is used in WordPress
wp-includes/default-filters.php 482
add_filter( 'heartbeat_send', 'wp_auth_check' );