heartbeat_tick action-hookWP 3.6.0

Fires when Heartbeat ticks in logged-in environments.

Allows the transport to be easily replaced with long-polling.

Usage

add_action( 'heartbeat_tick', 'wp_kama_heartbeat_tick_action', 10, 2 );

/**
 * Function for `heartbeat_tick` action-hook.
 * 
 * @param array  $response  The Heartbeat response.
 * @param string $screen_id The screen ID.
 *
 * @return void
 */
function wp_kama_heartbeat_tick_action( $response, $screen_id ){

	// action...
}
$response(array)
The Heartbeat response.
$screen_id(string)
The screen ID.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

wp_ajax_heartbeat()
heartbeat_tick
wp-admin/includes/ajax-actions.php 3458
do_action( 'heartbeat_tick', $response, $screen_id );

Where the hook is used in WordPress

Usage not found.