Skip to content

Instantly share code, notes, and snippets.

View nettoyage-header-wp.php
<?php
function nettoyage_header()
{
//Cache la barre d'admin du côté frontend
add_filter('show_admin_bar', '__return_false');
//Retire la meta Generator avec la version de WP
add_filter('the_generator', '__return_false');
remove_action( 'wp_head', 'wp_generator' );
//Retire la meta Generator du Plugin RevSlider