• 0
Sign in to follow this  
Followers 0

How to remove profile, generator and pingback from the head?

Question

Posted · Report post

I would like to remove the following tags from the head...

<link rel="profile" href="http://gmpg.org/xfn/11" />
	<meta name="generator" content="WordPress 3.1" />
	<link rel="pingback" href="http://manjushri.dev/xmlrpc.php" />
I would expect the following in functions.php to work for the first two but it doesn't.
remove_action( 'wp_head',             'wlwmanifest_link'                     );
	remove_action( 'wp_head',             'wp_generator'                         );

Any chance of a fix for this? Thanks.

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

It might be too late to make changes for 1.3, I have to go out as its the partners birthday, so I cant do it right now! Andrew might be able to add a filter.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

That would be great is he could.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

OK I have made the changes, it will be in 1.3 :) I added a new filter to remove the xfn link too, so to remove all you could add the following to your childs functions.php `remove_action( 'wp_head', 'wlwmanifest_link' );` `remove_action( 'wp_head', 'wp_generator' );` `remove_action('wp_head', 'rsd_link');` `add_filter( 'pagelines_xfn', '__return_true' );`

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0