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:
  • (bool|int|string) The limit that was set or false on failure.
Defined at:

Description

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

Only allows raising the existing limit and prevents lowering it.

Related Functions

wp_parse_id_list, _wp_emoji_list, wp_insert_link, wp_reset_query, wp_category_checklist

Top Google Results

User discussions

wpseek mobile