wp_raise_memory_limit ( $context = 'admin' )

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


Attempts to raise the PHP memory limit for memory intensive processes.Only allows raising the existing limit and prevents lowering it.

Related Functions

wp_is_recovery_mode, wp_parse_list, wp_parse_id_list, wp_category_checklist, wp_reset_query

Top Google Results

User discussions

wpseek mobile