heartbeat_tick WordPress Action Hook

The heartbeat_tick hook is one of the most important hooks in WordPress. It is responsible for making sure that the heartbeat of the WordPress site is ticking properly. This hook is called on every page load and has the responsibility of making sure that the WordPress site is up-to-date and running smoothly.

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.


Top ↑

Parameters

$response

(array)The Heartbeat response.

$screen_id

(string)The screen ID.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More