This script removes the WP version from the header and other links that are not always useful.
Its placed in your themes functions.php
// removes WP version from head and other junk links that slow down site goes in a themes functions.php function headcleaner_setup () { remove_action('wp_head', 'wp_generator'); // #1 remove_action('wp_head', 'wlwmanifest_link'); // #2 remove_action('wp_head', 'rsd_link'); // #3 remove_action('wp_head', 'wp_shortlink_wp_head'); // #4 remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10); // #5 add_filter('the_generator', '__return_false'); // #6 add_filter('show_admin_bar','__return_false'); // #7 remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); // #8 remove_action( 'wp_print_styles', 'print_emoji_styles' ); } add_action('after_setup_theme', 'headcleaner_setup');
eCommerce says
Wow create function. Used in my theme, helped improve the speed as well – happy days