Tag Info

New answers tagged


Thanks to the answer given by Rarst, I was able to find this in the Wordpress documentation... function get_image_sizes( $name ) { global $_wp_additional_image_sizes; $sizes = array(); $get_intermediate_image_sizes = get_intermediate_image_sizes(); // Create the full array with sizes and crop info foreach( $get_intermediate_image_sizes ...


If you take the look at the source of the function is simply stores the arguments in $_wp_additional_image_sizes global, with key by name. As far as I remember there are no dedicated API functions for it (get_intermediate_image_sizes() will return list of names, but not data). Just access the global and look for data you need by key.

Top 50 recent answers are included