Title: admin_memory_limit
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘admin_memory_limit’, int|string $filtered_limit )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#wp--skip-link--target)

Filters the maximum memory limit available for administration screens.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#description)󠁿

This only applies to administrators, who may require more memory for tasks like 
updates. Memory limits when processing images (uploaded or edited by users of any
role) are handled separately.

The `WP_MAX_MEMORY_LIMIT` constant specifically defines the maximum memory limit
available when in the administration back end. The default is 256M (256 megabytes
of memory) or the original `memory_limit` php.ini value if this is higher.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#parameters)󠁿

 `$filtered_limit`int|string

The maximum WordPress memory limit. Accepts an integer (bytes), or a shorthand string
notation, such as `'256M'`.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#source)󠁿

    ```php
    $filtered_limit = apply_filters( 'admin_memory_limit', $filtered_limit );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/functions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/functions.php#L7879)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/functions.php#L7879-L7879)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_raise_memory_limit()](https://developer.wordpress.org/reference/functions/wp_raise_memory_limit/)`wp-includes/functions.php` |

Attempts to raise the PHP memory limit for memory intensive processes.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/admin_memory_limit/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.6.0](https://developer.wordpress.org/reference/since/4.6.0/) | The default now takes the original `memory_limit` into account. | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fadmin_memory_limit%2F)
before being able to contribute a note or feedback.