Tag Info

New answers tagged


You can bind to the 'ended' event by targeting the audio element in the playlist: $('.wp-playlist .mejs-mediaelement audio').on('ended', function (event) { console.log('ended'); }); The 'click' events are just standard, eg: $('.wp-playlist-item').on('click', function (event) { console.log('clicked'); });


The problem: The problem seems to be that wp_check_filetype() doesn't recognize mp3 files with GET parameters. Possible workarounds: You have two options as far as I can see: 1) Override the audio shortcode with the wp_audio_shortcode_override filter. 2) or allow any audio extensions via the wp_audio_extensions filter. Here's an example how you can ...

Top 50 recent answers are included