add_file_fallback_image — Add a fallback image for files of the given mime type or type family.
Added in version 2.2.
Summary
- add_file_fallback_image($mimeType, $image)
Add a fallback image for files of the given mime type or type family.
The fallback is used when there are no generated derivative images and one is requested (for example, by a call to file_image()).
- Parameters:
$mimeType (
string) – The mime type this fallback is for, or the mime “prefix” it is for (video, audio, etc.)$image (
string) – The name of the image to use, as would be passed to img()
Usage
Since 2.8, passing the type '*' allows overriding the default fallback icon.