Last active
August 29, 2015 14:04
-
-
Save sminso/64d7eb6f37dece344625 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Disable Self Pings | |
function disable_self_trackback( &$links ) { | |
foreach ( $links as $l => $link ) | |
if ( 0 === strpos( $link, get_option( 'home' ) ) ) | |
unset($links[$l]); | |
} | |
//* http://ThriveWP.com | |
add_action( 'pre_ping', 'disable_self_trackback' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment