I'd like to have all oEmbed urls (youtube, vimeo, soundcloud, etc.) behave as they usually behave, with one exception.
In my theme I've created a widget that gets data from a given post. The post content is rendered through
I'm planning to add a checkbox that allows to set the autoplay for any oEmbed media contained in the selected post.
The only thing I don't know is how to handle this :) I suppose I must work with some filter, but:
- I don't know which filter I should use
- I don't know ho to hook to the filter only when rendering the widget.