kses_allowed_protocols

FILTER wp-includes\functions.php (ligne 7218) github
Filters the list of protocols allowed in HTML attributes.

Paramètres

Entrée :
$protocols
Sortie :
@param string[] $protocols Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more.

Utilisation

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

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

Actualités

Chargement des actualités...