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.


Top ↑

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.


Top ↑

Source

File: wp-admin/includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More