add_file_display_callback — Add a callback for displaying files with a given mimetype and/or extension.
Summary
- add_file_display_callback($fileIdentifiers, $callback, array $options = array())
Add a callback for displaying files with a given mimetype and/or extension.
- Parameters:
$fileIdentifiers (
array|string) – Set of MIME types and/or file extensions to which the provided callback will respond.$callback (
callback) – Any valid callback.$options (
array)