Created
June 30, 2017 14:12
-
-
Save pierre-dargham/23593b533d18d484489fa22d8d414277 to your computer and use it in GitHub Desktop.
wpg-disable-dopings.php
This file contains 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
<?php | |
namespace Globalis\WP\DisableDoPings; | |
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