W3cubDocs

/WordPress

apply_filters( ‘cron_memory_limit’, int|string $filtered_limit )

Filters the memory limit allocated for WP-Cron event processing.

Parameters

$filtered_limitint|string
Maximum memory limit to allocate for WP-Cron.
Default WP_MAX_MEMORY_LIMIT or the original php.ini memory_limit, whichever is higher.
Accepts an integer (bytes), or a shorthand string notation, such as '256M'.

Source

$filtered_limit = apply_filters( 'cron_memory_limit', $filtered_limit );

Changelog

Version Description
6.3.0 Introduced.

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