Filters the list of attachment link attributes.
$content
Sortie :
@param array $attributes An array of attributes for the link markup, @param int $id Post ID. @param string $link_html The page link HTML output. @param int|WP_Post $post Post ID or object. Can be 0 for the current global post. @param string|int[] $size Requested image size. Can be any registered image size name, or @param bool $permalink Whether to add permalink to image. Default false. @param bool $icon Whether to include an icon. @param string|false $text If string, will be link text. @param array|string $attr Array or string of attributes. @param string $content @return string
// Utilisation de la fonction prepend_attachment
$result = prepend_attachment($content);
if ($result) {
// Votre logique ici
}
Chargement des actualités...