A self pingback is created automatically in WordPress when you are linking your own blog posts. These pingbacks will appear as a comment in your blog posts. Internal link is a great way to improve your website’s SEO. It helps in the ranking of your website in Google. However, self pingback is something you don’t want to see.
So, what is a pingback?
A pingback is a type of comment that’s created when you link to another blog post where pingbacks are enabled.
The link might be linked to a blog post of your own or a blog post of another website. As long as the pingbacks are enabled, the pingback comment will be created automatically for the blog post owner to approve.
See below explanation to have a better idea about pingbacks.
The above scenario is about having a link to a blog post on another website. However, pingbacks can also work within your website. If you link one of your posts to another post, your WordPress will send a self pingback. The result is that it will create the self pingback as a comment in your post. This is what you don’t want it to happen.
Now that you know what a pingback is, next I will show you how to disable self pingbacks in WordPress.
What you need to do is to download and install the plugin and then activate it. Once activated, self pingback is turned off in your WordPress. That’s all.
If you do not want to use a plugin to disable self pingback, then you can use the WordPress built-in function to turn off the self pingbacks feature completely on your site.
You can do that in WordPress by simply go to Settings >> Discussion page. Under the Discussion Settings section, you see the Default article settings options. Uncheck the checkbox next to ‘Attempt to notify any blogs linked to from the article’ option. Then click the the Save Changes button to save your settings and you are done.
The third option to disable self pingbacks involves changing of WordPress programming source codes. I don’t recommend this method unless you are confident with your coding skills.
Simply copy the following codes into your theme’s functions.php file. You can find the functions.php file in Appearance >> Editor page.
1 2 3 4 5 6 7 8 | 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' ); |
That’s all for my sharing today and I hope this article is helpful to you on how to disable self pingbacks in WordPress. Do share it with your friends if you think it could help your friends too.
You may also want to check my last post about how to secure WordPress website.
“Sharing is the best way to learn”
To Your Success,
Kwah Choon Hiong
Do you know that you can use your mobile phone to scan documents? Of course,…
Today, I want to show you how to cast your mobile phone to your PC.…
In this article, I will show you how to install and configure Fail2ban service on…
Have you ever want to bulk delete to your WordPress posts records and you have…
Perhaps you hear about the terms “Landing Page”. Sometimes, we also call it as “Lead…
In this article, you will be learning how to embed Google Forms in WordPress. Google…