Created
December 9, 2024 16:05
-
-
Save mommaroodles/bc8350004e7f3e0e0d8e9b0781bc4fc0 to your computer and use it in GitHub Desktop.
Disable do pings and clear records in db
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'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment