Title: wp_oembed_remove_provider
Published: April 25, 2014
Last modified: February 24, 2026

---

# wp_oembed_remove_provider( string $format ): bool

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#wp--skip-link--target)

Removes an oEmbed provider.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#see-also)󠁿

 * [WP_oEmbed](https://developer.wordpress.org/reference/classes/wp_oembed/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#parameters)󠁿

 `$format`stringrequired

The URL format for the oEmbed provider to remove.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#return)󠁿

 bool Was the provider removed successfully?

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/embed.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/embed.php#L166)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/embed.php#L166-L179)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_oEmbed::_remove_provider_early()](https://developer.wordpress.org/reference/classes/wp_oembed/_remove_provider_early/)`wp-includes/class-wp-oembed.php` |

Removes an oEmbed provider.

  | 
| [_wp_oembed_get_object()](https://developer.wordpress.org/reference/functions/_wp_oembed_get_object/)`wp-includes/embed.php` |

Returns the initialized [WP_oEmbed](https://developer.wordpress.org/reference/classes/wp_oembed/) object.

  | 
| [did_action()](https://developer.wordpress.org/reference/functions/did_action/)`wp-includes/plugin.php` |

Retrieves the number of times an action has been fired during the current request.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.5.0](https://developer.wordpress.org/reference/since/3.5.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/?output_format=md#comment-content-1489)
 2.   [Codex](https://profiles.wordpress.org/codex/)  [  10 years ago  ](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/#comment-1489)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_oembed_remove_provider%2F%23comment-1489)
    Vote results for this note: -1[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_oembed_remove_provider%2F%23comment-1489)
 4. **Removes the WordPress TV provider**
 5.     ```php
        wp_oembed_remove_provider( 'http://wordpress.tv/*' );
        ```
    
 6.  * This is an old comment doesn’t appear to be accurate any more. The $format parameter
       is a regular expression string and must exactly match what’s in class-wp-oembed.
       php. In the example given, the format string is: `"#https?://wordpress\.tv/.*#
       i"`
     * [Chad Cloman](https://profiles.wordpress.org/chadcloman/) [5 years ago](https://developer.wordpress.org/reference/functions/wp_oembed_remove_provider/#comment-4936)
 7.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_oembed_remove_provider%2F%3Freplytocom%3D1489%23feedback-editor-1489)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_oembed_remove_provider%2F)
before being able to contribute a note or feedback.