We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1355fbe + f48b864 commit 65d97edCopy full SHA for 65d97ed
classes/Visualizer/Module/Chart.php
@@ -139,6 +139,10 @@ public function setJsonSchedule() {
139
140
if ( -1 < $time ) {
141
add_post_meta( $chart_id, Visualizer_Plugin::CF_JSON_SCHEDULE, $time );
142
+ // Update schedules.
143
+ $schedules = get_option( Visualizer_Plugin::CF_JSON_SCHEDULE, array() );
144
+ $schedules[ $chart_id ] = time() + $time * HOUR_IN_SECONDS;
145
+ update_option( Visualizer_Plugin::CF_JSON_SCHEDULE, $schedules );
146
}
147
wp_send_json_success();
148
0 commit comments