0

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 the_content().

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:

  1. I don't know which filter I should use
  2. I don't know ho to hook to the filter only when rendering the widget.

Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.