W3cubDocs

/WordPress

apply_filters( ‘wp_read_video_metadata’, array $metadata, string $file, string|null $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

$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.

Source

return apply_filters( 'wp_read_video_metadata', $metadata, $file, $file_format, $data );

Changelog

Version Description
4.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_read_video_metadata