You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2401,7 +2401,7 @@ public function admin_notices() {
2401
2401
echowp_kses_post( '<div class="notice notice-error feedzy-error-critical is-dismissible"><p>' . __( 'WP Cron is disabled. Your feeds would not get updated. Please contact your hosting provider or system administrator', 'feedzy-rss-feeds' ) . '</p></div>' );
2402
2402
}
2403
2403
2404
-
if ( false === wp_next_scheduled( 'feedzy_cron' ) ) {
2404
+
if ( false === Feedzy_Rss_Feeds_Util_Scheduler::is_scheduled( 'feedzy_cron' ) ) {
2405
2405
echowp_kses_post( '<div class="notice notice-error"><p>' . __( 'Unable to register cron job. Your feeds might not get updated', 'feedzy-rss-feeds' ) . '</p></div>' );
* @param string $hook The name of the hook to clear.
47
+
* @param array $args Optional. Arguments that were to be passed to the hook's callback function. Default empty array.
48
+
* @return mixed The scheduled action ID if a scheduled action was found, or null if no matching action found. If WP_Cron is used, on success an integer indicating number of events unscheduled, false or WP_Error if unscheduling one or more events fail.
if ( function_exists( 'as_unschedule_all_actions' ) ) {
52
+
returnas_unschedule_all_actions( $hook, $args );
53
+
}
54
+
55
+
returnwp_clear_scheduled_hook( $hook, $args );
56
+
}
57
+
58
+
/**
59
+
* Schedule an event.
60
+
*
61
+
* @param int $time The first time that the event will occur.
62
+
* @param string $recurrence How often the event should recur. See wp_get_schedules() for accepted values.
63
+
* @param string $hook The name of the hook that will be triggered by the event.
64
+
* @param array $args Optional. Arguments to pass to the hook's callback function. Default empty array.
65
+
* @return integer|bool|WP_Error The action ID if Action Scheduler is used. True if event successfully scheduled, False or WP_Error on failure if WP Cron is used.
0 commit comments