embed_thumbnail_id

FILTER wp-includes\theme-compat\embed-content.php (ligne 32) github
Filters the thumbnail image ID for use in the embed template.

Paramètres

Entrée :
$thumbnail_id
Sortie :
@param int|false $thumbnail_id Attachment ID, or false if there is none.

Utilisation

// Modifier la valeur avec le filtre 'embed_thumbnail_id'
add_filter('embed_thumbnail_id', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($thumbnail_id) {
    // Modifier la valeur
    return $thumbnail_id;
}

Actualités

Chargement des actualités...