public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/dripfeed.php
/**
		 * Setup or clear the scheduler for the notifications timers for the dripfeed. If the setting is 'never'
		 * then clear the scheduler. If it's anything else, then add it.
		 *
		 * @param String $timeSetting The time setting to use (daily, twicedaily, hourly)
		 */
Setup or clear the scheduler for the notifications timers for the dripfeed. If the setting is 'never'
then clear the scheduler. If it's anything else, then add it.

@param String $timeSetting The time setting to use (daily, twicedaily, hourly)
Setup or clear the scheduler for the notifications timers for the dripfeed . If the setting is ' never ' then clear the scheduler . If it ' s anything else then add it . @param String $timeSetting The time setting to use ( daily twicedaily hourly )
public static function installNotificationHook_dripfeed( $timeSetting ) {
			wp_clear_scheduled_hook( WPCW_WPCRON_NOTIFICATIONS_DRIPFEED_ID );
			switch ( $timeSetting ) {
				case 'twicedaily':
				case 'daily':
				case 'hourly':
					wp_schedule_event( time() + 60, $timeSetting, WPCW_WPCRON_NOTIFICATIONS_DRIPFEED_ID );
					break;
				case 'never':
					break;
				default:
					wp_schedule_event( time() + 3600, 'twicedaily', WPCW_WPCRON_NOTIFICATIONS_DRIPFEED_ID );
					break;
			}
		}
public static function installNotificationHook_dripfeed ( $ timeSetting ) { wp_clear_scheduled_hook ( WPCW_WPCRON_NOTIFICATIONS_DRIPFEED_ID ) ; switch ( $ timeSetting ) { case 'twicedaily' : case 'daily' : case 'hourly' : wp_schedule_event ( time ( ) + 60 , $ timeSetting , WPCW_WPCRON_NOTIFICATIONS_DRIPFEED_ID ) ; break ; case 'never' : break ; default : wp_schedule_event ( time ( ) + 3600 , 'twicedaily' , WPCW_WPCRON_NOTIFICATIONS_DRIPFEED_ID ) ; break ; } }
Setup or clear the scheduler for the notifications timers for the dripfeed.
Setup or clear the scheduler for the notifications timers for the dripfeed .
// Always clear what's there already // Valid times, so add the event in the way that we want. // time() is used, because we're using internal time, not localised time. // Do nothing. Event already cleared. // Catchall case - ensure there's some kind of event executing. Defaulting to twice daily. Set // to trigger in an hour, just in case the system needs the queue database to be set up.