Filters the HTML for the retrieved generator type. The dynamic portion of the hook name, `$type`, refers to the generator type. Possible hook names include: - `get_the_generator_atom` - `get_the_generator_comment` - `get_the_generator_export` - `get_the_generator_html` - `get_the_generator_rdf` - `get_the_generator_rss2` - `get_the_generator_xhtml`
$gen, $type
Sortie :
@param string $gen The HTML markup output to wp_head(). @param string $type The type of generator. Accepts 'html', 'xhtml', 'atom',
// Modifier la valeur avec le filtre 'get_the_generator_{$type}'
add_filter('get_the_generator_{$type}', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($gen) {
// Modifier la valeur
return $gen;
}
Chargement des actualités...