woocommerce-arcavis-shop.php
## This function Schedule a cron for give time interval from setting in admin.
This function Schedule a cron for give time interval from setting in admin.
This function Schedule a cron for give time interval from setting in admin .
public function arcavis_add_cron_recurrence_interval( $schedules ) {
		$arcavis_settings = get_option( 'arcavis_settings' );
		$arcavis_options = unserialize($arcavis_settings);
	 	if(isset($arcavis_options['arcavis_link'])){		 	
		    $schedules['arcavis_minutes'] = array(
		            'interval'  => $arcavis_options['arcavis_sync_interval'] * 60,
		            'display'   => 'Arcavis Minutes',
		    );
		}
	    $schedules['arcavis_initial_sync'] = array(
	            'interval'  => 3*60,
	            'display'   => 'Arcavis Initial Sync',
	    );
	    return $schedules;
	}
public function arcavis_add_cron_recurrence_interval ( $ schedules ) { $ arcavis_settings = get_option ( 'arcavis_settings' ) ; $ arcavis_options = unserialize ( $ arcavis_settings ) ; if ( isset ( $ arcavis_options [ 'arcavis_link' ] ) ) { $ schedules [ 'arcavis_minutes' ] = array ( 'interval' => $ arcavis_options [ 'arcavis_sync_interval' ] * 60 , 'display' => 'Arcavis Minutes' , ) ; } $ schedules [ 'arcavis_initial_sync' ] = array ( 'interval' => 3 * 60 , 'display' => 'Arcavis Initial Sync' , ) ; return $ schedules ; }
This function Schedule a cron for give time interval from setting in admin.
This function Schedule a cron for give time interval from setting in admin .