Posted By

devzonefr on 01/08/10


Tagged

php wordpress generator


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

ira
hariom


Remove/Replace the Wordpress Generator


 / Published in: PHP
 

URL: http://www.devzone.fr/hack-wordpress-supprimer-le-wordpress-generator

How to remove or replace this in wordpress:

  1. // Remove the WordPress Generator
  2. function remove_generators() { return ''; }
  3. add_filter( 'the_generator', 'remove_generators' );
  4.  
  5. // Replace the WordPress Generator
  6. function change_generators() { return '<meta name="generator" content="WordPress" />'; }
  7. add_filter( 'the_generator', 'change_generators' );

Report this snippet  

You need to login to post a comment.