Skip to content

Instantly share code, notes, and snippets.

@spacedmonkey
Last active August 29, 2015 14:09
Show Gist options
  • Save spacedmonkey/86bfa8b73d1010e2a2b4 to your computer and use it in GitHub Desktop.
Save spacedmonkey/86bfa8b73d1010e2a2b4 to your computer and use it in GitHub Desktop.
// Ping the cron on the portal site to trigger term import now
$portal_site_url = get_home_url( $sync_destination );
$portal_site_url = apply_filters('aggregator_remote_get_url', $portal_site_url);
$args = array(
'blocking' => false,
'timeout' => WP_CRON_LOCK_TIMEOUT
);
$args = apply_filters('aggregator_remote_get_args', $args, $portal_site_url);
wp_remote_get(
$portal_site_url . '/wp-cron.php',
$args
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment