WordPress at a glance
function is not described

as_schedule_cron_action() WC 1.0

Schedule an action that recurs on a cron-like schedule.

No Hooks.

Return

Int. The action ID.

Usage

as_schedule_cron_action( $timestamp, $schedule, $hook, $args, $group );
$timestamp (required)
-
$schedule(string) (required)
A cron-link schedule string
$hook(string) (required)
The hook to trigger.
$args(array)
Arguments to pass when the hook triggers.
$group(string)
The group to assign this job to.

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)

Code of as_schedule_cron_action() WC 5.3.0

<?php
function as_schedule_cron_action( $timestamp, $schedule, $hook, $args = array(), $group = '' ) {
	if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
		return 0;
	}
	return ActionScheduler::factory()->cron( $hook, $args, $timestamp, $schedule, $group );
}