lisaleague
4/24/2014 - 12:12 AM

From http://lava360.com/10-amazing-wordpress-hacks-related-to-function-php-file/ Pinging is the most annoy thing, especially if your blog is

From http://lava360.com/10-amazing-wordpress-hacks-related-to-function-php-file/ Pinging is the most annoy thing, especially if your blog is getting nice traffic from other blogs and social media. When you link up your own older blog posts to the current blog then you ping yourself automatically which is undesired behavior by the most of the bloggers. Then try out this handy function to stop pining back your own blog –

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' );