wp_oembed_remove_provider

Removes an oEmbed provider.

Description

wp_oembed_remove_provider( (string) $format ); 

Parameters (1)

0. $format (string)
The URL format for the oEmbed provider to remove.

Usage

  1. if ( !function_exists( 'wp_oembed_remove_provider' ) ) { 
  2. require_once ABSPATH . WPINC . '/embed.php'; 
  3.  
  4. // The URL format for the oEmbed provider to remove. 
  5. $format = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_oembed_remove_provider($format); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/embed.php  
  1. function wp_oembed_remove_provider( $format ) { 
  2. if ( did_action( 'plugins_loaded' ) ) { 
  3. $oembed = _wp_oembed_get_object(); 
  4.  
  5. if ( isset( $oembed->providers[ $format ] ) ) { 
  6. unset( $oembed->providers[ $format ] ); 
  7. return true; 
  8. } else { 
  9. WP_oEmbed::_remove_provider_early( $format ); 
  10.  
  11. return false;