Home / functions.php / Replace the generator meta
  • How to Replace the generator meta

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

    wordpress snippet : PHP

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

    ( WordPress codex functions, hooks, in this snippet. )