jetpack_display_posts_widget_cron_intervals

Adds 10 minute running interval to the cron schedules.

Description

(array) jetpack_display_posts_widget_cron_intervals( (array) $current_schedules ); 

Returns (array)

Parameters (1)

0. $current_schedules (array)
Currently defined schedules list.

Usage

  1. if ( !function_exists( 'jetpack_display_posts_widget_cron_intervals' ) ) { 
  2. require_once '/modules/widgets/wordpress-post-widget.php'; 
  3.  
  4. // Currently defined schedules list. 
  5. $current_schedules = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_display_posts_widget_cron_intervals($current_schedules); 
  9.  

Defined (1)

The function is defined in the following location(s).

/modules/widgets/wordpress-post-widget.php  
  1. function jetpack_display_posts_widget_cron_intervals( $current_schedules ) { 
  2.  
  3. /** 
  4. * Only add the 10 minute interval if it wasn't already set. 
  5. */ 
  6. if ( ! isset( $current_schedules['minutes_10'] ) ) { 
  7. $current_schedules['minutes_10'] = array( 
  8. 'interval' => 10 * MINUTE_IN_SECONDS,  
  9. 'display' => 'Every 10 minutes' 
  10. ); 
  11.  
  12. return $current_schedules;