Warning: This function has been deprecated. Use http://en.wikipedia.org/wiki/Cron() instead.

wc_schedule_cron_action( int $timestamp, string $schedule, string $hook, array $args = array(), string $group = '' )

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


Description Description

See also See also

  • 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)

Top ↑

Parameters Parameters

$timestamp

(Required) The schedule will start on or after this time

$schedule

(Required) A cron-link schedule string

$hook

(Required) The hook to trigger

$args

(Optional) Arguments to pass when the hook triggers

Default value: array()

$group

(Optional) The group to assign this job to

Default value: ''


Top ↑

Return Return

(string) The job ID


Top ↑

Source Source

File: packages/action-scheduler/deprecated/functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.