Advertisements

get_intermediate_image_sizes

Definition:
function get_intermediate_image_sizes() {}

Get the available image sizes

Return values

returns:Returns a filtered array of image size strings

Defined filters

  • intermediate_image_sizes
    apply_filters( 'intermediate_image_sizes', $image_sizes )

Source code

function get_intermediate_image_sizes() {

	global $_wp_additional_image_sizes;

	$image_sizes = array('thumbnail', 'medium', 'large'); // Standard sizes

	if ( isset( $_wp_additional_image_sizes ) && count( $_wp_additional_image_sizes ) )

		$image_sizes = array_merge( $image_sizes, array_keys( $_wp_additional_image_sizes ) );



	return apply_filters( 'intermediate_image_sizes', $image_sizes );

}

1436

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: