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

---

# apply_filters( ‘intermediate_image_sizes’, string[] $default_sizes )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/intermediate_image_sizes/?output_format=md#parameters)
 * [More Information](https://developer.wordpress.org/reference/hooks/intermediate_image_sizes/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/intermediate_image_sizes/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/intermediate_image_sizes/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/intermediate_image_sizes/?output_format=md#changelog)

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

Filters the list of intermediate image sizes.

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

 `$default_sizes`string[]

An array of intermediate image size names. Defaults are `'thumbnail'`, `'medium'`,`'
medium_large'`, `'large'`.

## 󠀁[More Information](https://developer.wordpress.org/reference/hooks/intermediate_image_sizes/?output_format=md#more-information)󠁿

The `$default_sizes` parameter also contains all image sizes registered with [add_image_size()](https://developer.wordpress.org/reference/functions/add_image_size/)

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

    ```php
    return apply_filters( 'intermediate_image_sizes', $default_sizes );
    ```

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

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

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

Gets the available intermediate image size names.

  |

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

| Version | Description | 
| [2.5.0](https://developer.wordpress.org/reference/since/2.5.0/) | Introduced. |

## User Contributed Notes

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