Home WordPress 4 Ways to Disable Self Pingbacks in WordPress

4 Ways to Disable Self Pingbacks in WordPress

Sometimes — when writing an article on your WordPress blog — you need to refer to another post within your blog to strengthen your argument and to make it easy for your readers understanding over a specific word or phrase. This method called internal link.

By default, when you create an internal link, it will appear as a comment and you will get notified. It’s happen because pingback is enabled by default by WordPress. What is that?

Pingback is the way WordPress communicate between websites. When you create a post in your blog and linking to your friend’s blog, your blog will automatically send him/her a pingback. Your friend’s blog will receive the ping and then automatically go to your blog to confirm that the pingback originates there. Then your friend will the ability to display your pingback as a comment.

Pingback is also applies to your own blog. It’s called self pingback.

Most WordPress users don’t like the way self pingbacks works because it is very annoying. That’s why they prefer to disable self pingbacks. If you want to do it too but don’t know how, you can choose one of the methods below.

Method one: Using No Self Pings plugin

The easiest way to disable self pingback is by installing No Self Pings plugin. This plugin is really easy to use and require no settings at all. Once you installed and activated the plugin, it will be working immediately.

  • As usual, login to your WordPress dashboard and head to Plugins –> Add New. Search the No Self Pings plugin on the search bar and hit enter. Press the Install Now button and activate the plugin.

Method two: Using Disabler plugin

When you go to the Disabler plugin page, you will see a notification that this plugin has been not updated for more than 2 years so you probably will be little doubt to install it. Let me tell you, this plugin is still work. So, if prefer to this one rather than No Self Pings, just install it.

  • Login to your WordPress dashboard and go to Plugins –> Add New and search for Disabler plugin on the search bar. Click on the Install Now button and activate once it’s installed.

  • Unlike No Self Pings, this plugin need to be configured before working. Go to Settings –> Disabler. You will see several options. To disable self pingback, go to the Back End Settings section and check the Disable self pings option.

Method three: From the WordPress Discussion setting

WordPress is basically allows you to disable self pingbacks on your blog. Applying this method meaning that you will be turning off pingback feature completely on your site.

  • On your WordPress dashboard go to Settings –> Discussion. Uncheck the “Attempt to notify any blogs linked to from the article” option on the Default article settings section and save the changes.

Method three: Inserting additional code

If you confident enough with your PHP skill, you can also disable the self pingbacks by inserting the following code into the functions file on your WordPress theme.

  • On your WordPress theme to go Appearance –> Editor. Choose functions.php and insert this code.

function no_self_ping( &$links ) {
$home = get_option( 'home' );
foreach ( $links as $l => $link )
if ( 0 === strpos( $link, $home ) )
unset($links[$l]);
}

add_action( 'pre_ping', 'no_self_ping' );

LEAVE A REPLY

Please enter your comment!
Please enter your name here

MOST-READ THIS WEEK