Remove WP Version Number
Prevent robot scrapers from easily finding out which version of WordPress you’re running.
Not a substitute for keeping WP updated, but a handy fallback for clients who may not.
1 2 3 4 5 6 7 8 |
/* remove WP version number */ if ( ! function_exists( 'dnlt_remove_wp_version' ) ) { add_filter( 'the_generator', 'dnlt_remove_wp_version' ); function dnlt_remove_wp_version() { return ''; } } |