Adding MP3 by using hooks
-
I want to add external mp3 files to the media library by using hooks. Now i am not sure, where to add the code.
add_filter( ’eml_supported_mime_types’, function( $list ) {
$list[‘audio/mp3’] = array(
‘label’ => ‘MP3 Audio’,
‘ext’ => ‘mp3’
);
return $list
} );Does the code belong in the functions.php of the theme?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Adding MP3 by using hooks’ is closed to new replies.