We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc0f0da commit d4c6827Copy full SHA for d4c6827
disable_self_pingbacks.php
@@ -0,0 +1,7 @@
1
+function disable_self_pingback( &$links ) {
2
+ $home = get_option( 'home' );
3
+ foreach ( $links as $l => $link )
4
+ if ( 0 === strpos( $link, $home ) )
5
+ unset($links[$l]);
6
+}
7
+add_action( 'pre_ping', 'disable_self_pingback' );
0 commit comments