Opened 5 months ago
Get errors from wp_oembed_get
|Reported by:||slushman||Owned by:|
Would it be possible to add error collection to the oEmbed class? It would be more useful to provide a helpful error when a remote oEmbed source is not available rather than a generic "there was an issue". As an example, if you try to use wp_oembed_get() on a YouTube video that is not allowing embedding, plugins (and/or WP itself) would have the option of returning a specific error: "The requested video doesn't not allow for embedding".