file_is_displayable_image
apply_filters( ‘file_is_displayable_image’, bool $result , string $path )
过滤器::过滤当前图像是否可以在浏览器中显示。
Filter Hook: Filters whether the current image is displayable in the browser.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$result | (bool) | 图像是否可以显示。默认为真。 |
$path | (string) | 图像的路径。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-admin/includes/image.php:906 | 1 | 0 |
file_is_displayable_image 为WP2原创文章,链接:https://www.wp2.cn/hook/file_is_displayable_image/