pre_get_ready_cron_jobs WordPress Filter Hook

The pre_get_ready_cron_jobs hook is triggered before cron jobs are fired. This hook can be used to perform tasks such as initializing variables or checking permissions.

apply_filters( 'pre_get_ready_cron_jobs', null|array[] $pre ) #

Filter to preflight or hijack 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.


Top ↑

Parameters

$pre

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


Top ↑

Source

File: wp-includes/cron.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.