Skip to content

Instantly share code, notes, and snippets.

@cdils
Forked from baczoni/gist:2481083
Last active December 30, 2015 00:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cdils/7750903 to your computer and use it in GitHub Desktop.
Save cdils/7750903 to your computer and use it in GitHub Desktop.
<?php //remove this line
function disable_self_ping( &$links ) {
foreach ( $links as $l => $link )
if ( 0 === strpos( $link, get_option( 'home' ) ) )
unset($links[$l]);
}
add_action( 'pre_ping', 'disable_self_ping' );
@cdils
Copy link
Author

cdils commented Dec 2, 2013

Insert into your WordPress theme's functions.php file to disable self ping notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment