customize_allowed_urls

FILTER wp-includes\class-wp-customize-manager.php (ligne 4671) github
Filters the list of URLs allowed to be clicked and followed in the Customizer preview.

Paramètres

Entrée :
$allowed_urls
Sortie :
@param string[] $allowed_urls An array of allowed URLs.

Utilisation

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

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

Actualités

Chargement des actualités...