Filter hook 'image_memory_limit'
in WP Core File wp-includes/functions.php at line 7812
Description
Filters the memory limit allocated for image manipulation.
Occurrences
Filename |
Line Number |
wp-includes/functions.php |
7812 |
Parameters
Type |
Name |
Description |
int|string |
$filtered_limit |
Maximum memory limit to allocate for image processing. 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'. |
PHP Doc
/**
* Filters the memory limit allocated for image manipulation.
*
* @since 3.5.0
* @since 4.6.0 The default now takes the original `memory_limit` into account.
*
* @param int|string $filtered_limit Maximum memory limit to allocate for image processing.
* 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'.
*/