WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp oembed remove provider

Description

Removes an oEmbed provider.

Usage

 <?php wp_oembed_remove_provider$format ?> 

Parameters

$format (string
  • The URL format of the oEmbed provider you want to remove.

Return Values

(Boolean
True if provider was removed, False otherwise.

Examples

To remove a provider, you will need to know the format used in wp-includes/class-oembed.php.

The following example removes the WordPress TV provider:

<?php wp_oembed_remove_provider( 'http://wordpress.tv/*' ); ?>

Change Log

Source File

wp_oembed_remove_provider is located in wp-includes/media.php

Related

Embeds: wp_oembed_add_provider(), wp_oembed_remove_provider(), wp_oembed_get(), wp_embed_defaults(), wp_embed_register_handler(), wp_embed_unregister_handler(), get_embedded_audio(), get_embedded_media(), get_embedded_video(), wp_embed_handler_audio(), wp_embed_handler_video()

See also index of Function Reference and index of Template Tags.