wp_get_audio_extensions(): string[]

In this article

Returns a filtered list of supported audio formats.

Return

string[] Supported audio formats.

Source

	'title'       => $attachment->post_title,
	'caption'     => $attachment->post_excerpt,
	'description' => $attachment->post_content,
);

$track['meta'] = array();
$meta          = wp_get_attachment_metadata( $attachment->ID );
if ( ! empty( $meta ) ) {

	foreach ( wp_get_attachment_id3_keys( $attachment ) as $key => $label ) {
		if ( ! empty( $meta[ $key ] ) ) {

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.