Filters the names and labels of the default image sizes.
$size_namesstring[]
'Thumbnail', 'Medium', 'Large', and ‘Full Size’.The ‘image_size_names_choose‘ filter allows modification of the list of image sizes that are available to administrators in the WordPress Media Library.
This is most commonly used to make custom image sizes available from selection in the WordPress admin.
$size_names = apply_filters(
'image_size_names_choose',
array(
'thumbnail' => __( 'Thumbnail' ),
'medium' => __( 'Medium' ),
'large' => __( 'Large' ),
'full' => __( 'Full Size' ),
)
);
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_size_names_choose