Filters the thumbnail shape for use in the embed template. Rectangular images are shown above the title while square images are shown next to the content.
$shape, $thumbnail_id
Sortie :
@param string $shape Thumbnail image shape. Either 'rectangular' or 'square'. @param int $thumbnail_id Attachment ID.
// Modifier la valeur avec le filtre 'embed_thumbnail_image_shape'
add_filter('embed_thumbnail_image_shape', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($shape) {
// Modifier la valeur
return $shape;
}
Chargement des actualités...