Skip to content

How To Disable Pingbacks And Trackbacks In WordPress

In blogging, trackbacks and pingbacks is a way to alert blogs that you have linked in your blog articles. The only difference between them is that trackbacks must be created manually and send an excerpt of the content and pingbacks are totally automatic and don’t send any excerpts.

You can easily disable pingbacks and trackbacks in WordPress from the Discussion settings, but it would just stop the action, not completely disable them.

If you want to completely disable pingbacks and trackbacks in your WordPress, then just drop following snippet to your current theme’s functions.php file:

add_filter( 'xmlrpc_methods', 'remove_xmlrpc_pingback_ping' );
function remove_xmlrpc_pingback_ping( $methods ) {
   unset( $methods[''] );
   return $methods;
} ;

Leave a Reply

Your email address will not be published. Required fields are marked *