Stop Pinging Update Services
Stops WordPress from notifying ping services such as Ping-O-Matic every time you publish, which most sites no longer need.
Opens WPIDE on
Code
add_action( 'init', function () {
remove_action( 'do_all_pings', 'generic_ping', 10 );
} );
add_filter( 'pre_option_ping_sites', '__return_empty_string' );
Notes
Pingbacks and trackbacks are separate; use the pingbacks snippet to turn those off.
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.