Remove pingback link from header?
-
I don’t need or want either remote publishing or pingbacks — I’m concerned about spam — so I’ve removed the xmlrpc.php file. However, the pingback links still appears in the site header and I want to remove it.
I tried inserting this code into my child theme’s functions.php file:
function remove_x_pingback($headers) { unset($headers['X-Pingback']); return $headers; } add_filter('wp_headers', 'remove_x_pingback');
…but that didn’t do it.
How can I get rid of the header link without hacking up the theme’s header.php file to delete it?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Remove pingback link from header?’ is closed to new replies.