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.


Top ↑

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;
}


Top ↑

Changelog

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