Filters the attachment caption.
$post_id = 0
Sortie :
@param string $caption Caption for the given attachment. @param int $post_id Attachment ID. @param int $post_id Optional. Attachment ID. Default is the ID of the global `$post`. @return string|false Thumbnail URL on success, false on failure.
// Utilisation de la fonction wp_get_attachment_thumb_url
$result = wp_get_attachment_thumb_url($post_id = 0);
if ($result) {
// Votre logique ici
}
Chargement des actualités...