wp_read_video_metadata WordPress Filter Hook
The wp_read_video_metadata Wordpress hook allows you to read and parse video metadata from a variety of sources. This can be useful for creating a video library, or for automatically generating thumbnails and other metadata for your video content.
apply_filters( 'wp_read_video_metadata', array $metadata , string $file , string $file_format , array $data ) #
Filters the array of metadata retrieved from a video.
Description
In core, usually this selection is what is stored. More complete data can be parsed from the $data
parameter.
Parameters
- $metadata
(array)Filtered Video metadata.
- $file
(string)Path to video file.
- $file_format
(string)File format of video, as analyzed by getID3.
- $data
(array)Raw metadata from getID3.
Source
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |