add_file_display_callback

File-related functions

Summary

add_file_display_callback(array|string $fileIdentifiers, callback $callback, array $options = Array)

Declare a callback function that will be used to display files with a given MIME type and/or file 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) –

Usage

Examples