modules/videopress/class.videopress-scheduler.php 1 location
|
@@ 70-81 (lines=12) @@
|
| 67 |
|
* |
| 68 |
|
* @return array |
| 69 |
|
*/ |
| 70 |
|
public function add_30_minute_cron_interval( $current_schedules ) { |
| 71 |
|
|
| 72 |
|
// Only add the 30 minute interval if it wasn't already set. |
| 73 |
|
if ( ! isset( $current_schedules['minutes_30'] ) ) { |
| 74 |
|
$current_schedules['minutes_30'] = array( |
| 75 |
|
'interval' => 30 * MINUTE_IN_SECONDS, |
| 76 |
|
'display' => 'Every 30 minutes' |
| 77 |
|
); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
return $current_schedules; |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
/** |
| 84 |
|
* Activate a single cron |
modules/widgets/wordpress-post-widget.php 1 location
|
@@ 37-50 (lines=14) @@
|
| 34 |
|
* |
| 35 |
|
* @return array |
| 36 |
|
*/ |
| 37 |
|
function jetpack_display_posts_widget_cron_intervals( $current_schedules ) { |
| 38 |
|
|
| 39 |
|
/** |
| 40 |
|
* Only add the 10 minute interval if it wasn't already set. |
| 41 |
|
*/ |
| 42 |
|
if ( ! isset( $current_schedules['minutes_10'] ) ) { |
| 43 |
|
$current_schedules['minutes_10'] = array( |
| 44 |
|
'interval' => 10 * MINUTE_IN_SECONDS, |
| 45 |
|
'display' => 'Every 10 minutes' |
| 46 |
|
); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
return $current_schedules; |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
/** |
| 53 |
|
* Execute the cron task |
sync/class.jetpack-sync-actions.php 1 location
|
@@ 196-204 (lines=9) @@
|
| 193 |
|
return true; |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
static function minute_cron_schedule( $schedules ) { |
| 197 |
|
if( ! isset( $schedules['1min'] ) ) { |
| 198 |
|
$schedules['1min'] = array( |
| 199 |
|
'interval' => 60, |
| 200 |
|
'display' => esc_html__( 'Every minute', 'jetpack' ) |
| 201 |
|
); |
| 202 |
|
} |
| 203 |
|
return $schedules; |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
// try to send actions until we run out of things to send, |
| 207 |
|
// or have to wait more than 15s before sending again, |