Filters the post thumbnail HTML.
$html, $post->ID, $post_thumbnail_id, $size, $attr
Sortie :
@param string $html The post thumbnail HTML. @param int $post_id The post ID. @param int $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one. @param string|int[] $size Requested image size. Can be any registered image size name, or @param string|array $attr Query string or array of attributes.
// Modifier la valeur avec le filtre 'post_thumbnail_html'
add_filter('post_thumbnail_html', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($html) {
// Modifier la valeur
return $html;
}
Chargement des actualités...