WordPress at Your Fingertips
filter is not described

(context)_memory_limit filter-hook . WP 4.6.0

Filters the memory limit allocated for arbitrary contexts.

The dynamic portion of the hook name, $context, refers to an arbitrary context passed on calling the function. This allows for plugins to define their own contexts for raising the memory limit.


add_filter( '(context)_memory_limit', 'filter_function_name_3990' );
function filter_function_name_3990( $filtered_limit ){
	// filter...

	return $filtered_limit;
Maximum memory limit to allocate for images. or the original php.ini memory_limit, whichever is higher. Accepts an integer (bytes), or a shorthand string notation, such as '256M'.
Default: '256M'


Since 4.6.0 Introduced.

Where the hook is called

wp-includes/functions.php 7348
$filtered_limit = apply_filters( "{$context}_memory_limit", $filtered_limit );

Where in WP core the hook is used WordPress

Usage not found.