To increase the memory limit in WordPress (wp_max_memory_limit), you need to edit the wp-config.php file or your server’s configuration file. Here are the steps:

  1. Edit the wp-config.php file:
    • Access the wp-config.php file in your WordPress installation.
    • Add the following line of code before the line that says “/* That’s all, stop editing! */”:
      define('WP_MEMORY_LIMIT', '256M');

    This sets the memory limit to 256 MB. You can adjust the value depending on your needs, such as 128M or 512M.

  2. Edit php.ini (optional):
    • If you have access to the php.ini file on your server, find the line:
      memory_limit = 128M
    • Change the value to a higher one, like 256M or more, according to your requirements.
  3. Restart the server:
    • After making the changes, if you modified the php.ini file, you need to restart the server for the changes to take effect.