If you are using a WordPress website when you write posts you may find that you are getting notifications that you have pingbacks from when you link to your own posts on your website. There is a way to turn off self pingbacks without using a plugin by adding this code to your functions.php file. You may want to backup your WordPress website before you make updates to it.
/** * No Self Pings * * @author WPSnacks.com * @link https://www.wpsnacks.com */ function no_selfpings( &$links ) { $home = get_option( 'home' ); foreach ( $links as $l => $link ) if ( 0 === strpos( $link, $home ) ) unset($links[$l]); } add_action( 'pre_ping', 'no_selfpings' );
Now if that works for you it would keep you from receiving pingbacks from yourself when you link to your own posts on your website on there.
Leave a Reply