0

Is there way to extract embedded video without using a regular expression as seen here?

I was hoping that there would be a way to get them using a WordPress function.

0

It looks like the closest you get is in the WP-Embed class:

autoembed( $content );

It says it extracts urls which are on distinct lines (like you'd put a url in for embedding it), but it then passes it to WP_Embed::shortcode().

Not quite what you want. You could dig into WP_Embed::shortcode() to see if you can figure out how to hack together your own script, but I don't think there's anything ready-made for you :/

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.