mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Document the $args parameter of wp_oembed_get().
Link to `wp_oembed_get()` as the canonical source when documenting additional arguments in various `WP_oEmbed` methods. Follow-up to [49620]. See #51269. git-svn-id: https://develop.svn.wordpress.org/trunk@49626 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -99,8 +99,15 @@ function wp_embed_defaults( $url = '' ) {
|
||||
* @see WP_oEmbed
|
||||
*
|
||||
* @param string $url The URL that should be embedded.
|
||||
* @param array $args Optional. Additional arguments and parameters for retrieving embed HTML.
|
||||
* Default empty.
|
||||
* @param array $args {
|
||||
* Optional. Additional arguments for retrieving embed HTML. Default empty.
|
||||
*
|
||||
* @type int|string $width Optional. The `maxwidth` value passed to the provider URL.
|
||||
* @type int|string $height Optional. The `maxheight` value passed to the provider URL.
|
||||
* @type bool $discover Optional. Determines whether to attempt to discover link tags
|
||||
* at the given URL for an oEmbed provider when the provider URL
|
||||
* is not found in the built-in providers list. Default true.
|
||||
* }
|
||||
* @return string|false The embed HTML on success, false on failure.
|
||||
*/
|
||||
function wp_oembed_get( $url, $args = '' ) {
|
||||
|
||||
Reference in New Issue
Block a user