image_size_names_choose WordPress Filter Hook

The image_size_names_choose hook allows you to choose which image sizes are displayed in the WordPress admin interface. This can be useful if you want to hide certain image sizes from your users.

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'.


Top ↑

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.


Top ↑

Source

File: wp-admin/includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.3.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.

Show More
Show More