WordPress is an open source content management system written in PHP. It is the easiest and most powerful blogging and website creation tool in existence today.
To increase the PHP Memory Limit in WordPress:
First, you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.
Next, you need to paste this code in the wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’
This code tells WordPress to increase the PHP memory limit to 256MB.
Once done, save all the changes and upload your wp-config.php file back to the server.
Now visit your WordPress site and the memory exhausted error will disappear now.