apply_filters( 'image_size_names_choose', string[] $size_names )
Filters the names and labels of the default image sizes.
Parameters
-
$size_names
string[] -
Array of image size labels keyed by their name. Default values include
'Thumbnail'
,'Medium'
,'Large'
, and 'Full Size'.
More Information
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.
Source
File: wp-admin/includes/media.php
.
View all references
$size_names = apply_filters(
'image_size_names_choose',
array(
'thumbnail' => __( 'Thumbnail' ),
'medium' => __( 'Medium' ),
'large' => __( 'Large' ),
'full' => __( 'Full Size' ),
)
);
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Add a new image sizes to the Media Library .
Example migrated from Codex:
The following will add a new image size option to the list of selectable sizes in the Media Library.