# 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.

- Type: PHP
- Runs: Run everywhere
- Category: [Disable Features](https://wpide.com/library/category/disable-features/)
- Tags: disable, pings, publishing
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/stop-update-service-pings/

## Code

```php
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 use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Stop Pinging Update Services" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
