file_is_displayable_image

过滤钩子


apply_filters( 'file_is_displayable_image', $result, $path )
参数
  • (bool)
    $result
    Whether the image can be displayed. Default true.
    Required:
  • (string)
    $path
    Path to the image.
    Required:
定义位置
  • wp-admin/includes/image.php
    , line 992
引入
2.5.0
弃用

Filters whether the current image is displayable in the browser.

return apply_filters( 'file_is_displayable_image', $result, $path );