Filters the path to the original image.
$attachment_id
Sortie :
@param string $original_image Path to original image file. @param int $attachment_id Attachment ID. @param int $attachment_id Attachment post ID. @return string|false Attachment image URL, false on error or if the attachment is not an image.
// Utilisation de la fonction wp_get_original_image_url
$result = wp_get_original_image_url($attachment_id);
if ($result) {
// Votre logique ici
}
Chargement des actualités...