Title: Increase php memory_limit
Last modified: August 30, 2016

---

# Increase php memory_limit

 *  ResolvedPlugin Author [Unyson](https://wordpress.org/support/users/unyson/)
 * (@unyson)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/increase-php-memory_limit/)
 * Hello,
 * We use this plugin in one of our themes and we have a lot of `.less` files so
   very often php throws error because memory limit was reached.
 * We can’t call in theme `ini_set(...)` because it will not pass Theme Check.
 * Can you please add in plugin the following line?
 *     ```
       @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) );
       ```
   
 * [https://wordpress.org/plugins/lessphp/](https://wordpress.org/plugins/lessphp/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Unyson](https://wordpress.org/support/users/unyson/)
 * (@unyson)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/increase-php-memory_limit/#post-6853222)
 * The save happens in ajax and we can’t increase the limit via [this filter](https://github.com/WordPress/WordPress/blob/4.4/wp-admin/admin.php#L155)
   because on ajax the `admin.php` file is not included
 *  Plugin Author [Unyson](https://wordpress.org/support/users/unyson/)
 * (@unyson)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/increase-php-memory_limit/#post-6853509)
 * fixed

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Increase php memory_limit’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lessphp.svg)
 * [Less PHP Compiler](https://wordpress.org/plugins/lessphp/)
 * [Support Threads](https://wordpress.org/support/plugin/lessphp/)
 * [Active Topics](https://wordpress.org/support/plugin/lessphp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lessphp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lessphp/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [Unyson](https://wordpress.org/support/users/unyson/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/increase-php-memory_limit/#post-6853509)
 * Status: resolved