Remove excessive information from WordPress blog headers to increase security

If you don’t need some information that WordPress places by default in the header of your blog pages, such as rel links to the previous and next posts, or the version of WordPress that you use, you can easily remove them from your header without changing the core system files of WordPress.

Go to the folder of your theme (wp-content\themes\your-theme) and open the file functions.php.

Add there some or all of the following commands, according to what you wish to remove from the header of your blog: