id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 51269 Document the $args parameter of wp_oembed_get() SergeyBiryukov helen "Reported by @vakho114 on [https://ru.wordpress.org/support/topic/wp_oembed_get-дополнительные-аргументы/ support forums]. `wp_oembed_get()` has an `$args` parameter, but it's not clarified which arguments exactly can be accepted. Looking at the code, the array is passed to a few `WP_oEmbed` methods: * `WP_oEmbed::get_html()` * `WP_oEmbed::get_data()` * `WP_oEmbed::get_provider()` * `WP_oEmbed::fetch()` In `WP_oEmbed::get_provider()`, the value of `$args['discover']` determines whether to call the `::discover()` method if the oEmbed provider URL is not found in the built-in providers list. In `WP_oEmbed::fetch()`, `$args` is merged with `wp_embed_defaults()`, then `$args['width']` and `$args['height']` are passed to the provider URL. So it looks like while any custom parameters can be passed, only `width`, `height`, and `discover` are supported by default and should be documented as such." defect (bug) closed normal 5.6 Embeds normal fixed has-patch docs