heartbeat_send

FILTER wp-admin\includes\ajax-actions.php (ligne 3524) github
Filters the Heartbeat response sent.

Paramètres

Entrée :
$response, $screen_id
Sortie :
@param array  $response  The Heartbeat response.
@param string $screen_id The screen ID.

Utilisation

// Modifier la valeur avec le filtre 'heartbeat_send'
add_filter('heartbeat_send', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($response) {
    // Modifier la valeur
    return $response;
}

Actualités

Chargement des actualités...