apply_filters( 'wp_read_video_metadata', array $metadata, string $file, string|null $file_format, array $data )
- Since
- 4.9.0
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.
Compatibility
- WordPress
- since 4.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$metadataarray- Filtered video metadata.
$filestring- Path to video file.
$file_formatstring|null- File format of video, as analyzed by getID3.
Null if unknown. $dataarray- Raw metadata from getID3.
Where this hook fires · 1
wp-admin/includes/media.php:3694wp_read_video_metadata()
Source code
* @param array $metadata Filtered video metadata. * @param string $file Path to video file. * @param string|null $file_format File format of video, as analyzed by getID3. * Null if unknown. * @param array $data Raw metadata from getID3. */ return apply_filters( 'wp_read_video_metadata', $metadata, $file, $file_format, $data );} /** * Retrieves metadata from an audio file's ID3 tags. * * @since 3.6.0Changelog
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.