Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_oembed_remove_provider ›

Desde3.5.0
Obsoleton/a
wp_oembed_remove_provider ( $format )
Parâmetros:
  • (string) $format The URL format for the oEmbed provider to remove.
    Required: Yes
Ver:
  • WP_oEmbed
Retorna:
  • (bool) Was the provider removed successfully?
Definido em:
Codex:

Removes an oEmbed provider.



Fonte

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;
}