apply_filters( 'pre_get_ready_cron_jobs', null|array[] $pre )
- Since
- 5.1.0
Filter to override retrieving ready cron jobs.
Description
Returning an array will short-circuit the normal retrieval of ready cron jobs, causing the function to return the filtered value instead.
Compatibility
- WordPress
- since 5.1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$prenull|array[]- Array of ready cron tasks to return instead. Default null to continue using results from _get_cron_array().
Where this hook fires · 1
wp-includes/cron.php:1227wp_get_ready_cron_jobs()
Source code
* * @since 5.1.0 * * @param null|array[] $pre Array of ready cron tasks to return instead. Default null * to continue using results from _get_cron_array(). */ $pre = apply_filters( 'pre_get_ready_cron_jobs', null ); if ( null !== $pre ) { return $pre; } $crons = _get_cron_array();Changelog
Introduced in 5.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.