WP_oEmbed::_remove_provider_early( string $format )

Removes an oEmbed provider.


Description

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.

Top ↑

See also


Top ↑

Parameters

$format string Required
The format of URL that this provider can handle. You can use asterisks as wildcards.

Top ↑

Source

File: wp-includes/class-wp-oembed.php. View all references

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

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


Top ↑

Changelog

Changelog
Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.