WordPress includes numerous meta tags in the page header that are unnecessary for many users.

You can manually remove unused tags using code.

Add the following code to the functions.php file of your theme:

remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'feed_links',2);
remove_action('wp_head', 'feed_links_extra',3);
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'adjacent_posts_rel_link_wp_head');
remove_action('wp_head', 'wp_shortlink_wp_head',10,0);

rsd_link – Used by blog clients.
wp_generator – Outputs the engine version number.
feed_links – Outputs links to the site’s main RSS feeds.
feed_links_extra – Outputs links to additional RSS feeds.
wlwmanifest_link – Used by Windows Live Writer blog client.
adjacent_posts_rel_link_wp_head – Outputs links to adjacent posts.
wp_shortlink_wp_head – Outputs the shortlink for a post.

Removing Version Numbers from Style and Script Links

function rem_wp_ver_css_js( $src ) {


if ( strpos( $src, 'ver=' ) )

$src = remove_query_arg( 'ver', $src );

return $src;

}

add_filter( 'style_loader_src', 'rem_wp_ver_css_js', 9999 );

add_filter( 'script_loader_src', 'rem_wp_ver_css_js', 9999 );

By adding this code to your functions.php file, you ensure that version numbers are removed from the links to styles and scripts, contributing to cleaner and more concise code without affecting the engine’s functionality.