WordPress.org

Ready to get started?Download WordPress

Codex

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

Difference between revisions of "Function Reference/wp oembed remove provider"

m (Description: typo)
(Added return values)
Line 9: Line 9:
 
;* $format (''string'') : The URL format of the oEmbed provider you want to remove.
 
;* $format (''string'') : The URL format of the oEmbed provider you want to remove.
   
  +
== Return Values ==
  +
; (''Boolean'') : True if provider was removed, False otherwise.
 
== Examples ==
 
== Examples ==
   

Revision as of 18:20, 12 December 2012

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.