WordPress at a glance
filter is not described

wp_read_video_metadata filter-hook . WP 4.9.0

Filters the array of metadata retrieved from a video.

In core, usually this selection is what is stored. More complete data can be parsed from the $data parameter.


add_filter( 'wp_read_video_metadata', 'filter_function_name_4066', 10, 4 );
function filter_function_name_4066( $metadata, $file, $file_format, $data ){
	// filter...

	return $metadata;
Filtered Video metadata.
Path to video file.
File format of video, as analyzed by getID3.
Raw metadata from getID3.

Список изменений

С версии 4.9.0 Введена.

Где вызывается хук

wp-admin/includes/media.php 3572
return apply_filters( 'wp_read_video_metadata', $metadata, $file, $file_format, $data );

Где используется хук в ядре WP

Использование не найдено.