Array
shape returned by wp_get_registered_image_subsizes()
.
https://developer.wordpress.org/reference/functions/wp_get_registered_image_subsizes/
<?php
$registered_image_sizes = wp_get_registered_image_subsizes();
$registered_image_sizes = [
'thumbnail' => [
'width' => 150,
'height' => 150,
'crop' => true,
],
'medium' => [
'width' => 300,
'height' => 300,
'crop' => false,
],
'medium_large' => [
'width' => 768,
'height' => 0,
'crop' => false,
],
'large' => [
'width' => 1024,
'height' => 1024,
'crop' => false,
],
'1536x1536' => [
'width' => 1536,
'height' => 1536,
'crop' => false,
],
'2048x2048' => [
'width' => 2048,
'height' => 2048,
'crop' => false,
],
'custom_1' => [
'width' => 340,
'height' => 255,
'crop' => true,
],
'custom_2' => [
'width' => 306,
'height' => 261,
'crop' => true,
],
'custom_3' => [
'width' => 612,
'height' => 522,
'crop' => true,
],
];