Changing PHP Memory Limit via wp-config file

WordPress does allow a way to increase or adjust PHP Memory Limit via wp-config file. This only works if the host allows to increase the memory limit.

In case if host supports it, memory limit can be increased by just adding the block of code on wp-config file.  Code below sets the PHP limit to 128 MB.

define( 'WP_MEMORY_LIMIT', '64M' );

Similarly memory limit can be adjusted for admin area by using code below:

define( 'WP_MAX_MEMORY_LIMIT', '256M' );

This is not only the stuff or modifications that can be done via wp-config file alternations. Details about editing wp-config files can be found here.

About Author

I am Robin - WordPress Developer based in Sydney. I work as Digital Developer. I do some projects now and then, and love blogging about WordPress and Web Design.