SANGKRIT

How To Stop WordPress From Sending Pings When Linking Different Posts Within Your Website ?

Whenever you internally link your posts, WordPress sends a trackback to you. Using given hack you can stop this so that you only receive trackbacks from other sites not from your own domain.

Open your theme’s function.php file and add the following hack:

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

add_action( ‘pre_ping’, ‘stop_my_pinging’ );
?>

That’s all you have to do. If you like using plugin then simply install and activate Stop Internal Pingbacks.

Leave a Reply