Skip to content

Instantly share code, notes, and snippets.

@anandkumar
Created December 15, 2015 05:20
Show Gist options
  • Save anandkumar/7f2d719addfd855a13a0 to your computer and use it in GitHub Desktop.
Save anandkumar/7f2d719addfd855a13a0 to your computer and use it in GitHub Desktop.
remove pingback - wordpress
<?php
// Do not copy starting php tag
function remove_x_pingback($headers) {
unset($headers['X-Pingback']);
return $headers;
}
add_filter('wp_headers', 'remove_x_pingback');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment