WP_oEmbed::_remove_provider_early() WordPress Method

The WP_oEmbed::_remove_provider_early() function is used to remove an oEmbed provider from the list of providers. This function is called by the wp_oembed_remove_provider() function.

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

	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
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.