W3cubDocs

/WordPress

do_action( 'heartbeat_tick', array $response, string $screen_id )

Fires when Heartbeat ticks in logged-in environments.

Description

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

Parameters

$response

(array) The Heartbeat response.

$screen_id

(string) The screen ID.

Source

File: wp-admin/includes/ajax-actions.php

View on Trac

Changelog

Version Description
3.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/heartbeat_tick