wp_get_schedule

SummerySummery

Retrieve the recurrence schedule for an event.

Syntax

wp_get_schedule( string $hook, array $args = array() )

ParametersParameters

$hook

(string) (Required) Action hook to identify the event.

$args

(array) (Optional) Arguments passed to the event's callback function.

Default value: array()

ReturnReturn

(string|false) False, if no schedule. Schedule name on success.

SourceSource

File: wp-includes/cron.php


			

ChangelogChangelog

Changelog
Version Description
5.1.0 'get_schedule' filter added.
2.1.0 Introduced.

See alsoSee also

Scroll to Top