transmitstudio
9/7/2016 - 12:09 AM

Disable pingbacks

Disable pingbacks

Go to Settings » Discussion.
Under the Default article settings section, uncheck the box next to ‘Attempt to notify any blogs linked to from the article’ option. 
<?php
//add to functions.php
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' );
?>