edit_custom_thumbnail_sizes WordPress Filter Hook
The edit_custom_thumbnail_sizes hook allows you to modify the default thumbnail sizes for your Wordpress site. This can be useful if you want to change the size of your thumbnails to match the width of your content area, or to change the size of your featured images. This hook gives you the ability to change the default thumbnail sizes without having to edit your theme files.
apply_filters( 'edit_custom_thumbnail_sizes', bool|string[] $edit_custom_sizes ) #
Filters whether custom sizes are available options for image editing.
Parameters
- $edit_custom_sizes
(bool|string[])True if custom sizes can be edited or array of custom size names.
Source
Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |