wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Replace the generator meta

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will replace the meta tag with your own custom meta details.

snippet :  PHPcopy
// Replace the WordPress Generator
function change_generators() { return '<meta name="generator" content="WordPress 9.0" />'; }
add_filter( 'the_generator', 'change_generators' );

Did you like this post? If so please share it with your friends. Thanks!