load_default_embeds

FILTER wp-includes\embed.php (ligne 201) github
Filters whether to load the default embed handlers. Returning a falsey value will prevent loading the default embed handlers.

Paramètres

Entrée :
true
Sortie :
@param bool $maybe_load_embeds Whether to load the embeds library. Default true.

Utilisation

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

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

Actualités

Chargement des actualités...