wp_oembed_remove_provider

Advertisement

Summery Summery

Removes an oEmbed provider.

Syntax Syntax

wp_oembed_remove_provider( string $format )

Parameters Parameters

$format

(Required) The URL format for the oEmbed provider to remove.

Return Return

(bool) Was the provider removed successfully?

Source Source

File: wp-includes/embed.php

		if ( isset( $oembed->providers[ $format ] ) ) {
			unset( $oembed->providers[ $format ] );
			return true;
		}
	} else {
		WP_oEmbed::_remove_provider_early( $format );
	}

	return false;
}

/**
 * Determines if default embed handlers should be loaded.

Advertisement

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

See also See also

Advertisement

Leave a Reply