WPDev.one
Core Function
View Source on Trac ↗

wp_raise_memory_limit()

wp_raise_memory_limit( mixed $context = 'admin' )

Attempts to raise the PHP memory limit for memory intensive processes.

Parameters 1 required

Name / Type Description
string

$context Optional. Context in which the function is called. Accepts either 'admin', 'image', 'cron', or an arbitrary other context. If an arbitrary context is passed, the similarly arbitrary {@see '$context_memory_limit'} filter will be invoked. Default 'admin'.

Required

Return Value

((int)
| string | false) The limit that was set or false on failure.

Function Information

Since Version
4.6.0
Source File
wp-includes/functions.php
Advertisement