Used By
Used By | Description |
---|---|
wp-includes/embed.php: wp_oembed_add_provider() | Adds a URL format and oEmbed provider URL pair. |
Adds an oEmbed provider.
The provider is added just-in-time when wp_oembed_add_provider() is called before the ‘plugins_loaded’ hook.
The just-in-time addition is for the benefit of the ‘oembed_providers’ filter.
(string) (Required) Format of URL that this provider can handle. You can use asterisks as wildcards.
(string) (Required) The URL to the oEmbed provider..
(bool) (Optional) Whether the $format parameter is in a regex format.
Default value: false
File: wp-includes/class-wp-oembed.php
public static function _add_provider_early( $format, $provider, $regex = false ) { if ( empty( self::$early_providers['add'] ) ) { self::$early_providers['add'] = array(); } self::$early_providers['add'][ $format ] = array( $provider, $regex ); }
Version | Description |
---|---|
4.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_oembed/_add_provider_early