Fires when Heartbeat ticks in logged-in environments. Allows the transport to be easily replaced with long-polling.
$response, $screen_id
Sortie :
@param array $response The Heartbeat response. @param string $screen_id The screen ID.
// Ajouter une fonction au hook action 'heartbeat_tick'
add_action('heartbeat_tick', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($response, $screen_id) {
// Votre code ici
error_log('Hook heartbeat_tick déclenché');
}
Chargement des actualités...