WPDev.one
Core Function
View Source on Trac ↗

wp_get_schedule()

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

Retrieves the name of the recurrence schedule for an event.

Parameters 2 required

Name / Type Description
$hook
string

Action hook to identify the event.

Required
array

$args Optional. Arguments passed to the event's callback function. Default empty array.

Required

Return Value

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

Function Information

Since Version
2.1.0
Source File
wp-includes/cron.php
Advertisement