wc_schedule_cron_action()
Deprecated since 2.1.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Schedule an action that recurs on a cron-like schedule.
No Hooks.
Returns
String. The job ID
Usage
wc_schedule_cron_action( $timestamp, $schedule, $hook, $args, $group );
- $timestamp(int) (required)
- The schedule will start on or after this time.
- $schedule(string) (required)
- A cron-link schedule string.
- $hook(string) (required)
- The hook to trigger.
- $args(array)
- Arguments to pass when the hook triggers.
Default: array() - $group(string)
- The group to assign this job to.
Default: ''
Notes
- See: http://en.wikipedia.org/wiki/Cron
┬ ┬ ┬ ┬ ┬ ┬
| | | | | |
| | | | | + year [optional]
| | | | +----- day of week (0 - 7) (Sunday=0 or 7)
| | | +---------- month (1 - 12)
| | +--------------- day of month (1 - 31)
| +-------------------- hour (0 - 23)
+------------------------- min (0 - 59)
Changelog
| Deprecated since | 2.1.0 |
wc_schedule_cron_action() wc schedule cron action code WC 10.3.6
function wc_schedule_cron_action( $timestamp, $schedule, $hook, $args = array(), $group = '' ) {
_deprecated_function( __FUNCTION__, '2.1.0', 'as_schedule_cron_action()' );
return as_schedule_cron_action( $timestamp, $schedule, $hook, $args, $group );
}