I have an audio player than uses the following syntax to display its player:
The thing is, I’m pretty sure I can show the user how to copy the url and paste it in the post, but how can I search the content for a .mp3
link and then put </code> in front of it and <code>
at the end of it?
Filter
the_content
ond/orthe_excerpt
and replace audio URLs that are not an attribute value already.Example: