wordpress memory limit code example
Example 1: wordpress max memory limit
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); //BACK-END MEMORY LIMIT
define('WP_MEMORY_LIMIT', '128M'); //FRONT-END MEMORY LIMIT
Example 2: wp allow memeery size
define( 'WP_MEMORY_LIMIT', '256M' );
Example 3: composer memory limit
php -d memory_limit=512M /usr/local/bin/composer update