Disable Self-Pingbacks
Stops WordPress from sending pingbacks to your own site when you link to your own posts, so they do not clutter the comment queue.
Opens WPIDE on
Code
add_action( 'pre_ping', function ( &$links ) {
$home = home_url();
foreach ( $links as $index => $link ) {
if ( 0 === strpos( $link, $home ) ) {
unset( $links[ $index ] );
}
}
} );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.