Get all possible registered image size with their names
$wp_additional_image_sizes = wp_get_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 as $_size) {
if (in_array($_size, array(\'thumbnail\', \'medium\', \'large\'))) {
$sizes[$_size][\'width\'] = get_option($_size . \'_size_w\');
$sizes[$_size][\'height\'] = get_option($_size . \'_size_h\');
$sizes[$_size][\'crop\'] = (bool) get_option($_size . \'_crop\');
} elseif (isset($wp_additional_image_sizes[$_size])) {
$sizes[$_size] = array(
\'width\' => $wp_additional_image_sizes[$_size][\'width\'],
\'height\' => $wp_additional_image_sizes[$_size][\'height\'],
\'crop\' => $wp_additional_image_sizes[$_size][\'crop\']
);
}
}
foreach ($sizes as $key => $image_size) {
echo "<li> ⚡ {$key} ☛ ({$image_size[\'width\']} x {$image_size[\'height\']}) {$image_size[\'crop\']} </li>";
}