get_pung

FUNCTION wp-includes\post.php (ligne 5996) github
Filters the list of enclosures already enclosed for the given post.

Paramètres

Entrée :
$post
Sortie :
@param string[] $pung    Array of enclosures for the given post.
@param int      $post_id Post ID.
@param int|WP_Post $post Post ID or object.
@return string[]|false Array of URLs already pinged for the given post, false if the post is not found.

Utilisation

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

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

Actualités

Chargement des actualités...