{$context}_memory_limit

{$context}_memory_limit

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.4.1

apply_filters('{$context}_memory_limit') is found 1 times:

  • /wp-includes/functions.php line 6856
    			 *                                   Default '256M' or the original php.ini `memory_limit`,
    			 *                                   whichever is higher. Accepts an integer (bytes), or a
    			 *                                   shorthand string notation, such as '256M'.
    			 */
    			$filtered_limit = apply_filters( "{$context}_memory_limit", $filtered_limit );
    			break;
    	}
    
    	$filtered_limit_int = wp_convert_hr_to_bytes( $filtered_limit );
    
    	if ( -1 === $filtered_limit_int || ( $filtered_limit_int > $wp_max_limit_int && $filtered_limit_int > $current_limit_int ) ) {