WP_oEmbed::_remove_provider_early()public staticWP 4.0.0

Removes an oEmbed provider.

The provider is removed just-in-time when wp_oembed_remove_provider() is called before the plugins_loaded hook.

The just-in-time removal is for the benefit of the oembed_providers filter.

Метод класса: WP_oEmbed{}

Хуков нет.


null. Ничего (null).


$result = WP_oEmbed::_remove_provider_early( $format );
$format(строка) (обязательный)
The format of URL that this provider can handle. You can use asterisks as wildcards.


Список изменений

С версии 4.0.0 Введена.

Код WP_oEmbed::_remove_provider_early() WP 6.5.3

public static function _remove_provider_early( $format ) {
	if ( empty( self::$early_providers['remove'] ) ) {
		self::$early_providers['remove'] = array();

	self::$early_providers['remove'][] = $format;