How to remove WordPress version

Just found a useful code to remove the WordPress version in your theme code.

You have to place this code in your functions.php file of your theme.

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

About Ricard Torres

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

@ricard_dev @ricard_dev

📝 Blog 🎙 Podcast

Leave a Reply

Add <code> Some Code </code> by using this tags.