WPDev.one
Core Function
View Source on Trac ↗

_set_cron_array()

_set_cron_array( mixed $cron, mixed $wp_error = false )

Updates the cron option with the new cron array.

Parameters 1 required

Name / Type Description
$cron
array[]

Array of cron info arrays from _get_cron_array().

Required
$wp_error
bool

Optional. Whether to return a WP_Error on failure. Default false.

Return Value

((bool)
| WP_Error) True if cron array updated. False or WP_Error on failure.

Function Information

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