get_to_ping

FUNCTION wp-includes\post.php (ligne 6027) github
Filters the list of already-pinged URLs for the given post.

Paramètres

Entrée :
$post
Sortie :
@param string[] $pung Array of URLs already pinged for the given post.
@param int|WP_Post $post Post ID or post object.
@return string[]|false List of URLs yet to ping.

Utilisation

// Utilisation de la fonction get_to_ping
$result = get_to_ping($post);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...