Last active
October 10, 2022 21:44
-
-
Save lukecav/5dfb8143b096955a145ef8c9632ad1ba to your computer and use it in GitHub Desktop.
Disable and remove do_pings in WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (isset($_GET['doing_wp_cron'])) { | |
| remove_action('do_pings', 'do_all_pings'); | |
| wp_clear_scheduled_hook('do_pings'); | |
| } |
Author
A huge thank you lukecav you saved me a lot of time and effort as we had a mountain of do_pings even though it's disabled for everything and it literally stopped the attack in it's tracks. Thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://wp-mix.com/wordpress-clean-up-do_pings/