Title: cron_request
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘cron_request’, array $cron_request_array, string $doing_wp_cron )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/cron_request/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/cron_request/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/cron_request/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/cron_request/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/cron_request/?output_format=md#wp--skip-link--target)

Filters the cron request arguments.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/cron_request/?output_format=md#parameters)󠁿

 `$cron_request_array`array

An array of cron request URL arguments.

 * `url` string
 * The cron request URL.
 * `key` string
 * The Unix timestamp (UTC) of the cron lock with microseconds.
 * `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 (UTC) of the cron lock with microseconds.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/cron_request/?output_format=md#source)󠁿

    ```php
    $cron_request = apply_filters(
    	'cron_request',
    	array(
    		'url'  => add_query_arg( 'doing_wp_cron', $doing_wp_cron, site_url( 'wp-cron.php' ) ),
    		'key'  => $doing_wp_cron,
    		'args' => array(
    			'timeout'   => 0.01,
    			'blocking'  => false,
    			/** This filter is documented in wp-includes/class-wp-http-streams.php */
    			'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
    		),
    	),
    	$doing_wp_cron
    );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/cron.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/cron.php#L954)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/cron.php#L954-L967)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/cron_request/?output_format=md#related)󠁿

| Used by | Description | 
| [spawn_cron()](https://developer.wordpress.org/reference/functions/spawn_cron/)`wp-includes/cron.php` |

Sends a request to run cron through HTTP request that doesn’t halt page loading.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/cron_request/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.5.0](https://developer.wordpress.org/reference/since/4.5.0/) | The `$doing_wp_cron` parameter was added. | 
| [3.5.0](https://developer.wordpress.org/reference/since/3.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcron_request%2F)
before being able to contribute a note or feedback.