Skip to content

Instantly share code, notes, and snippets.

@ahmadawais ahmadawais/functions.php
Last active Sep 28, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.