No self pings
Published June 21st, 2010 under Plugins
Have you ever written a blog post which links to another post within the same blog in WordPress? Has it annoyed the heck out of you when it triggered it pingback to the other post?
If you answered yes to both of those questions, then install the excellent “No Self Ping plugin” by Michael D. Adams. It disables that annoying functionality from WordPress and keeps your comments uncluttered by irritating self-pings.
Alternatively, you can simply copy and paste the following code into your themes functions.php file:
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' );