Removing pingback URL
-
Hi,
Is there a way to remove the pingback link from the header without adding a duplicate header.php file in the child theme? I don’t use pingbacks and have actually deleted xmlrpc.php (I’m having suspicious users trying to hit it directly, and I know in the past people have figured out ways to exploit it), so the link isn’t actually pointing to anything anyway.
I tried adding this code to functions.php:
function remove_x_pingback($headers) { unset($headers['X-Pingback']); return $headers; } add_filter('wp_headers', 'remove_x_pingback');
…but the link is still there, so that wasn’t it. Any suggestions?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Removing pingback URL’ is closed to new replies.