函数原型
get_intermediate_image_sizes(): string[]
函数描述
Gets the available intermediate image size names.
是否弃用
未弃用
函数参数
无
函数返回值
string[] An array of image size names.
函数位置
File: wp-includes/media.php.
函数源码
var_dump( get_intermediate_image_sizes() );
array(4) {
[0]=>
string(9) "thumbnail"
[1]=>
string(6) "medium"
[2]=>
string(12) "medium_large"
[3]=>
string(5) "large"
[4]=>
string(10) "custom-size"
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |

