wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_oembed_remove_provider › WordPress Function

Da3.5.0
Deprecaton/a
wp_oembed_remove_provider ( $format )
Parametri:
  • (string) $format The URL format for the oEmbed provider to remove.
    Richiesto:
Vedi:
  • WP_oEmbed
Ritorna:
  • (bool) Was the provider removed successfully?
Definito a:
Codex:

Removes an oEmbed provider.



Sorgenti

function wp_oembed_remove_provider( $format ) {
	if ( did_action( 'plugins_loaded' ) ) {
		$oembed = _wp_oembed_get_object();

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

	return false;
}