Filter hook 'wp_read_audio_metadata'

in WP Core File wp-admin/includes/media.php at line 3760

Description

Filters the array of metadata retrieved from an audio file. In core, usually this selection is what is stored. More complete data can be parsed from the `$data` parameter.

Occurrences

Filename Line Number
wp-admin/includes/media.php 3760

Parameters

Type Name Description
array $metadata Filtered audio metadata.
string $file Path to audio file.
string|null $file_format File format of audio, as analyzed by getID3. Null if unknown.
array $data Raw metadata from getID3.

PHP Doc

/**
	 * Filters the array of metadata retrieved from an audio file.
	 *
	 * In core, usually this selection is what is stored.
	 * More complete data can be parsed from the `$data` parameter.
	 *
	 * @since 6.1.0
	 *
	 * @param array       $metadata    Filtered audio metadata.
	 * @param string      $file        Path to audio file.
	 * @param string|null $file_format File format of audio, as analyzed by getID3.
	 *                                 Null if unknown.
	 * @param array       $data        Raw metadata from getID3.
	 */