Increase WordPress memory limits in wp-config.php
The limits of the website can be set according to the following article: https://mijn.host/kb/PHP-instellingen-wijzigen-php-ini/
It may happen that WordPress does not apply the changes to the limits, which means WordPress does not use all the limits. This article explains how the limits for WordPress can also be adjusted, so that all properties are used.
Step 1: Open wp-config.php
Look for the text: That's all, stop editing! Happy publishing.
Add the following line above it:
define( 'WP_MEMORY_LIMIT', '256M' );
The value “256M” can be changed to your own preference. For example, you can replace it with the value: “1024M”
Furthermore, you can also add an extra line for the wp-admin section. (Or your WordPress back-end.)
To do this, add the following line below the WP_MEMORY_LIMIT line:
define( 'WP_MAX_MEMORY_LIMIT', '512M' );
The value “512M” can be changed to your own preference. For example, you can replace it with the value: “1024M”
However, we recommend setting this value higher than the WP_MEMORY_LIMIT value.
Recommended values for Page Builders
For heavier websites using a Page Builder, such as Elementor, higher values are needed. For this we recommend the following:
define( 'WP_MEMORY_LIMIT', '768M' );
define( 'WP_MAX_MEMORY_LIMIT', '1024M' );
memory_limit in the hosting package must be set at least as high (for example 1024M), otherwise WordPress will not be able to apply these higher limits.Step 2: Save the changes
Once the changes are saved, WordPress will use the new limits and display them in the properties.
Still have questions? Get in touch.