Snippet: Remove the WordPress Version Info for Security Purposes

It is a healthy practice to remove unnecessary content from your wordpress website. Hide wordpress version from your website

Add following code to “functions.php”


add_filter('the_generator', 'wp_remove_version');
function wp_remove_version() {
    return '';

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>