Give WordPress more PHP memory for the front end and wp-admin, to fix "Allowed memory size exhausted" errors.
// Memory for front-end requests.
define( 'WP_MEMORY_LIMIT', '256M' );
// Memory for wp-admin, imports and updates.
define( 'WP_MAX_MEMORY_LIMIT', '512M' );
When a page needs more memory than PHP allows, it stops with “Allowed memory size of … bytes exhausted”. WooCommerce, page builders and imports are common causes. WordPress lets you raise its own limits from wp-config.php.
WP_MEMORY_LIMIT sets the memory WordPress asks PHP for on normal requests (WordPress’s default is 40M, or 64M on multisite). WP_MAX_MEMORY_LIMIT is used for heavier admin work like image editing and updates (default 256M).
WordPress raises the limit with ini_set( 'memory_limit' ), but it can’t go above what your host allows.
memory_limit in the PHP settings.Go to Tools → Site Health → Info → WordPress Constants. WP_MEMORY_LIMIT should show 256M.