heartbeat_nopriv_send

FILTER wp-admin\includes\ajax-actions.php (ligne 54) github
Filters Heartbeat Ajax response in no-privilege environments when no data is passed.

Paramètres

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

Utilisation

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

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

Actualités

Chargement des actualités...