Skip to content

Instantly share code, notes, and snippets.

@lukecav
Last active October 10, 2022 21:44
Show Gist options
  • Select an option

  • Save lukecav/5dfb8143b096955a145ef8c9632ad1ba to your computer and use it in GitHub Desktop.

Select an option

Save lukecav/5dfb8143b096955a145ef8c9632ad1ba to your computer and use it in GitHub Desktop.
Disable and remove do_pings in WordPress
if (isset($_GET['doing_wp_cron'])) {
remove_action('do_pings', 'do_all_pings');
wp_clear_scheduled_hook('do_pings');
}
@lukecav

lukecav commented Aug 13, 2017

Copy link
Copy Markdown
Author

@tripledm

Copy link
Copy Markdown

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