Hard-coded Audio Player

I would recommend that you have your theme require the wordpress.org version of the wpaudioplayer plugin. There is a great article about having themes check for and require plugins.

As is well-argued on this WPSE answer, it’s not a great idea to take code from a plugin and include it in your theme because you miss future updates and it might be legally/morally iffy. Best of all, if a person who purchases your theme chooses to switch themes some day, all their audio players will still work and they’ll be very happy and thank you forever.

Leave a Comment