Last active
September 28, 2016 01:16
-
-
Save ahmadawais/19332476a56cf54373d4d2de44a027cf to your computer and use it in GitHub Desktop.
WP: Remove WordPress Version the right way.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove WP Version. | |
* | |
* @since 1.0.0 | |
*/ | |
if ( ! function_exists( 'aa_remove_wp_version' ) ) { | |
// Add filter to the_generator. | |
add_filter( 'the_generator', 'aa_remove_wp_version' ); | |
/** | |
* aa_remove_wp_version function. | |
* | |
* Remove the WP version | |
* | |
* @return emtpy string | |
* @author Ahmad Awais | |
* @since 1.0.0 | |
*/ | |
function aa_remove_wp_version() { | |
return ''; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment