/* Hide Wordpress version */ add_filter( 'the_generator', '__return_null' ); remove_action('wp_head', 'wp_generator'); /* Hide WordPress Version Number from the RSS Feeds */ function remove_wp_version_rss() { return''; } add_filter('the_generator','remove_wp_version_rss'); /* Hide WordPress the version number from scripts and styles */ function remove_version_from_style_js( $src ) { if ( strpos( $src, 'ver=' . get_bloginfo( 'version' ) ) ) $src = remove_query_arg( 'ver', $src ); return $src; } add_filter( 'style_loader_src', 'remove_version_from_style_js'); add_filter( 'script_loader_src', 'remove_version_from_style_js'); /*Disable theme and plugin file editor*/ define( 'DISALLOW_FILE_EDIT', true );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter