YPSA Webmaster's Blog

Skip to content Skip to sidebar

Remove unnecessary meta information from your WordPress site

Removing unnecessary meta information enhance security and performance of your wordpress site.

Many WordPress themes by default include the version information. It helps hackers to easily target your site. You should not display which version of WordPress that’s running on your site to the general public.

You can cleanup unnecessary meta information putting some code in your theme functions.php


<?php
//remove unnecessary meta information
remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.
remove_action( 'wp_head', 'index_rel_link' ); // index link
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // start link
remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // Display relational links for the posts adjacent to the current post.
remove_action( 'wp_head', 'wp_generator' ); // Display the XHTML generator that is generated on the wp_head hook, WP version

?>

About the author

Abdullah Al Shakir

I am a web developer and graphics designer have been working in YPSA as webmaster since 2006. I am expert in XHTML, CSS, JavaScript and PHP programming. I am Wordpress theme and plugin developer. I am a father and husband living in Bangladesh.

You may also like

Leave a Reply