wp_get_additional_image_sizes() WordPress Function
The wp_get_additional_image_sizes() function allows you to get a list of additional image sizes that have been added to WordPress. This is useful for themes and plugins that need to know what additional image sizes are available.
wp_get_additional_image_sizes() #
Retrieve additional image sizes.
Return
(array) Additional images size data.
Source
File: wp-includes/media.php
function wp_get_additional_image_sizes() { global $_wp_additional_image_sizes; if ( ! $_wp_additional_image_sizes ) { $_wp_additional_image_sizes = array(); } return $_wp_additional_image_sizes; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |