pre_kses

FILTER wp-includes\kses.php (ligne 1159) github
Filters content to be run through KSES.

Paramètres

Entrée :
$content, $allowed_html, $allowed_protocols
Sortie :
@param string         $content           Content to filter through KSES.
@param array[]|string $allowed_html      An array of allowed HTML elements and attributes,
@param string[]       $allowed_protocols Array of allowed URL protocols.

Utilisation

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

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

Actualités

Chargement des actualités...