WordPress at a glance
function is not described

WP_oEmbed::_remove_provider_early() public WP 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.

{} It's a method of the class: WP_oEmbed{}

No Hooks.

Return

Null. Nothing.

Usage

$result = WP_oEmbed::_remove_provider_early( $format );
$format(string) (required)
The format of URL that this provider can handle. You can use asterisks as wildcards.

Notes

  • See: wp_oembed_remove_provider()

Changelog

Since 4.0.0 Introduced.

Code of WP_oEmbed::_remove_provider_early() WP 5.5.1

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

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