Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Last active September 28, 2016 01:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadawais/19332476a56cf54373d4d2de44a027cf to your computer and use it in GitHub Desktop.
Save ahmadawais/19332476a56cf54373d4d2de44a027cf to your computer and use it in GitHub Desktop.
WP: Remove WordPress Version the right way.
<?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