file_is_displayable_image()
file_is_displayable_image( string $path )
验证文件是否适合在网页中显示。
Validate that file is suitable for displaying within a web page.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$path | (string) | 必需 | 要测试的文件路径。 |
返回(Return)
(bool)如果合适,为真;如果不合适,为假。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-admin/includes/image.php:886 | 1 function | 2 |
file_is_displayable_image() 为WP2原创文章,链接:https://www.wp2.cn/functions/file_is_displayable_image-2/