wp_raise_memory_limit
wp_raise_memory_limit ( $context = 'admin' )
Parameters:- (string) context Optional. Context in which the function is called. Accepts either 'admin', 'image', or an arbitrary other context. If an arbitrary context is passed, the similarly arbitrary {@see '$context_memory_limit'} filter will be invoked. Default 'admin'.
Returns:- (int|string|false) The limit that was set or false on failure.
Defined at: - Introduced in WordPress: 4.6.0
- Deprecated in WordPress: —
Description
Attempts to raise the PHP memory limit for memory intensive processes.Only allows raising the existing limit and prevents lowering it.