get_enclosed

FUNCTION wp-includes\post.php (ligne 5957) github
Filters the new ping URL to add for the given post.

Paramètres

Entrée :
$post_id
Sortie :
@param string $new New ping URL to add.
@param int $post_id Post ID.
@return string[] Array of enclosures for the given post.

Utilisation

// Utilisation de la fonction get_enclosed
$result = get_enclosed($post_id);

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

Actualités

Chargement des actualités...