embed_thumbnail_image_shape

FILTER wp-includes\theme-compat\embed-content.php (ligne 75) github
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.

Paramètres

Entrée :
$shape, $thumbnail_id
Sortie :
@param string $shape        Thumbnail image shape. Either 'rectangular' or 'square'.
@param int    $thumbnail_id Attachment ID.

Utilisation

// 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;
}

Actualités

Chargement des actualités...