apply_filters( 'wp_read_audio_metadata', array $metadata, string $file, string|null $file_format, array $data )
- Since
- 6.1.0
Filters the array of metadata retrieved from an audio file.
Description
In core, usually this selection is what is stored.
More complete data can be parsed from the $data parameter.
Compatibility
- WordPress
- since 6.1.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 audio metadata.
$filestring- Path to audio file.
$file_formatstring|null- File format of audio, as analyzed by getID3.
Null if unknown. $dataarray- Raw metadata from getID3.
Where this hook fires · 1
wp-admin/includes/media.php:3786wp_read_audio_metadata()
Source code
* @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. */ return apply_filters( 'wp_read_audio_metadata', $metadata, $file, $file_format, $data );} /** * Parses creation date from media metadata. * * The getID3 library doesn't have a standard method for getting creation dates,Changelog
Introduced in 6.1.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.1.0 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.