Set WordPress memory limit constants

/**
 * Sets WordPress memory limit constants.
 *
 * `WP_MEMORY_LIMIT`     - Maximum amount of memory that can be consumed by PHP.
 * `WP_MAX_MEMORY_LIMIT` - Maximum amount of memory in the admin area.
 *
 * Use `M` for Megabytes and `G` for Gigabytes.
 *
 * @see https://wpcodebook.com/wordpress-memory-limit-constants/
 * @see https://developer.wordpress.org/apis/wp-config-php/#increasing-memory-allocated-to-php
 */
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Leave a Comment