How to Increase the Memory Limit in WP
The WP_MEMORY settings are different than your PHP settings, but if you want to increase the memory WordPress has available, then edit your wp-config.php file and add these lines at the end:
define('WP_MEMORY_LIMIT', '512M');
define('WP_MAX_MEMORY_LIMIT', '768M' );Make sure it’s AFTER this line in the file:
/* That’s all, stop editing! Happy publishing. */
And it should take effect immediately – just reload a page in WordPress.
📄 Download a PDF of This Article

