If you want to get those set in the admin panel, use the function get_option
. The keys are
1 2 3 4 5 6 | get_option('thumbnail_size_w'); get_option('thumbnail_size_h'); get_option('medium_size_w'); get_option('medium_size_h'); get_option('large_size_w'); get_option('large_size_h'); |
If you want them for some specific attachment, use wp_get_attachment_image_src
.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.