wc_schedule_single_action()
Schedule an action to run one time
No Hooks.
Return
String
. The job ID
Usage
wc_schedule_single_action( $timestamp, $hook, $args, $group );
- $timestamp(int) (required)
- When the job will run
- $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: ''
wc_schedule_single_action() wc schedule single action code WC 9.5.1
function wc_schedule_single_action( $timestamp, $hook, $args = array(), $group = '' ) { _deprecated_function( __FUNCTION__, '2.1.0', 'as_schedule_single_action()' ); return as_schedule_single_action( $timestamp, $hook, $args, $group ); }