Title: file_is_displayable_image
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘file_is_displayable_image’, bool $result, string $path )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/file_is_displayable_image/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/file_is_displayable_image/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/file_is_displayable_image/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/file_is_displayable_image/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/file_is_displayable_image/?output_format=md#wp--skip-link--target)

Filters whether the current image is displayable in the browser.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/file_is_displayable_image/?output_format=md#parameters)󠁿

 `$result`bool

Whether the image can be displayed. Default true.

`$path`string

Path to the image.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/file_is_displayable_image/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/image.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/image.php#L1192)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/image.php#L1192-L1192)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/file_is_displayable_image/?output_format=md#related)󠁿

| Used by | Description | 
| [file_is_displayable_image()](https://developer.wordpress.org/reference/functions/file_is_displayable_image/)`wp-admin/includes/image.php` |

Validates that file is suitable for displaying within a web page.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/file_is_displayable_image/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.5.0](https://developer.wordpress.org/reference/since/2.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Ffile_is_displayable_image%2F)
before being able to contribute a note or feedback.