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.


Top ↑

Source

File: wp-admin/includes/image-edit.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
6.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.