Filters the list of attachment link attributes.
array( 'href' => $url
Sortie :
@param array $attributes An array of attributes for the link markup, @param int $id Post ID.
// Modifier la valeur avec le filtre 'wp_get_attachment_link_attributes'
add_filter('wp_get_attachment_link_attributes', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array( 'href' => $url) {
// Modifier la valeur
return array( 'href' => $url;
}
Chargement des actualités...