W3cubDocs

/WordPress

apply_filters( 'cron_request', array $cron_request_array, string $doing_wp_cron )

Filters the cron request arguments.

Description

Parameters

$cron_request_array

(array) An array of cron request URL arguments.

  • 'url'
    (string) The cron request URL.
  • 'key'
    (int) The 22 digit GMT microtime.
  • 'args'
    (array) An array of cron request arguments.
    • 'timeout'
      (int) The request timeout in seconds. Default .01 seconds.
    • 'blocking'
      (bool) Whether to set blocking for the request. Default false.
    • 'sslverify'
      (bool) Whether SSL should be verified for the request. Default false.

$doing_wp_cron

(string) The unix timestamp of the cron lock.

Source

File: wp-includes/cron.php

View on Trac

Changelog

Version Description
4.5.0 The $doing_wp_cron parameter was added.
3.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/cron_request