Skip to content

Instantly share code, notes, and snippets.

@pierre-dargham
Created June 30, 2017 14:12
Show Gist options
  • Save pierre-dargham/23593b533d18d484489fa22d8d414277 to your computer and use it in GitHub Desktop.
Save pierre-dargham/23593b533d18d484489fa22d8d414277 to your computer and use it in GitHub Desktop.
wpg-disable-dopings.php
<?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