How to increase the WordPress memory limit

Author:

Date:

The WordPress Memory Limit is the maximum memory that WordPress can use to execute scripts and handle requests.

TL;DR

To increase the WordPress memory limit, you must add the following line of code in your wp-config.php file:

define(‘WP_MEMORY_LIMIT’, ‘256M’);

Replace 256M with your desired value.

What is the WordPress memory limit?

WordPress memory limit is not the same as PHP memory limit.

PHP memory limit is the maximum memory a PHP script can use during its execution. This limit is set in php.ini and controls how much memory any PHP script running on the server can consume, including WordPress.

This is the first part of the article

How to increase the WordPress memory limit

wpforms banner