apply_filters( ‘pre_get_ready_cron_jobs’, null|array[] $pre )

In this article

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.

Parameters

$prenull|array[]
Array of ready cron tasks to return instead. Default null to continue using results from _get_cron_array() .

Source

$pre = apply_filters( 'pre_get_ready_cron_jobs', null );

Changelog

VersionDescription
5.1.0Introduced.

User Contributed Notes

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