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’.
Source
$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. |
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.