WordPress at a glance
filter is not described

heartbeat_received filter-hook . WP 3.6.0

Filters the Heartbeat response received.

Использование

add_filter( 'heartbeat_received', 'filter_function_name_5523', 10, 3 );
function filter_function_name_5523( $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 3.6.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

wp-admin/includes/ajax-actions.php 66
add_filter( 'heartbeat_received', 'wp_check_locked_posts', 10, 3 );
wp-admin/includes/ajax-actions.php 67
add_filter( 'heartbeat_received', 'wp_refresh_post_lock', 10, 3 );
wp-admin/includes/ajax-actions.php 68
add_filter( 'heartbeat_received', 'heartbeat_autosave', 500, 2 );
wp-admin/includes/ajax-actions.php 382
add_filter( 'heartbeat_received', array( $this, 'check_changeset_lock_with_heartbeat' ), 10, 3 );