remove trackbacks and pingbacks in wordpress

Stop ping back,Pingbacks is a good way to notify someone you have linked in your article,It will help you to build a friendship with the niche bloggers.If you are lucky enough they may do same for you and it helps to increase Page Rank of your blog.

Whenever someone links your content the author will get email notification about the pingback but it becomes annoying when you link your own content in the article resulting pingback notifications to your Email.The worst part is,you are more likely to link your own content in the article than the others.So it becomes a serious issue for busy bloggers.

Disable Self Pingbacks Without Plugin

You just need to paste following code snippet to your themes


function disable_self_trackback( &$links ) {
foreach ( $links as $l => $link )
if ( 0 === strpos( $link, get_option( 'home' ) ) )
add_action( 'pre_ping', 'disable_self_trackback' );

Simple isn’t it ? But the problem is whenever you change the theme you need to make sure that its copied to your new WordPress Theme.If you are lazy like me then go for Plugins.

Disable Self Pingbacks using WordPress Plugin

here a simple plugin using the same code mentioned above.Install and activate a plugin called Disable Self Pingbacks.

Extreme solution : Disable Pingbacks


If your blog is very popular then I guess you dont rely on Pingbacks,So its better to completely disable Pingbacks from WordPress settings.

From WordPress Dashboard go to Settings >> Discussion and Uncheck the second option “Allow link notifications from other blogs (pingbacks and trackbacks)” ,If you uncheck the first option then other blogs which you linked will not be notified.So its better to disable only incoming pingbacks.

Final Note:

what method you use to disable self ping? let us know by comment below

Spread the love
  • 1

Leave a Reply

one × 1 =