wp_oembed_remove_provider( string $format )
Removes an oEmbed provider.
Description Description
See also See also
Parameters Parameters
- $format
-
(string) (Required) The URL format for the oEmbed provider to remove.
Return Return
(bool) Was the provider removed successfully?
Source Source
File: wp-includes/embed.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; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Removes the WordPress TV provider