Per temes de seguretat i posicionament és bo llevar tots els “Meta Generators”, que indiquen mitjançant codi quines plataformes i teconlogies està utilitzant el nostre lloc web.
Per llevar-ho, afegim aquest codi al nostre “functions.php”.
//Remove All Meta Generators function remove_meta_generators($html) { $pattern = '/<meta name(.*)=(.*)"generator"(.*)>/i'; $html = preg_replace($pattern, '', $html); return $html; } function clean_meta_generators($html) { ob_start('remove_meta_generators'); } add_action('get_header', 'clean_meta_generators', 100); add_action('wp_footer', function(){ ob_end_flush(); }, 100);