function nprstory_api_get_multi_settings_callback() { $run_multi = get_option('dp_npr_query_run_multi'); if ($run_multi) { DS_NPR_API::nprstory_cron_pull(); } //change the cron timer if (wp_next_scheduled('npr_ds_hourly_cron')) { wp_clear_scheduled_hook('npr_ds_hourly_cron'); } nprstory_error_log('NPR Story API plugin: updating the npr_ds_hourly_cron event timer'); wp_schedule_event(time(), 'ds_interval', 'npr_ds_hourly_cron'); }