wp_oembed_remove_provider()移除一个oembed支持

目录

描述

Removes an oEmbed provider.

wp_oembed_remove_provider() 描述

用法

 <?php wp_oembed_remove_provider$format ?> 

wp_oembed_remove_provider() 用法

参数

$format

(string) (必填) The URL format of the oEmbed provider you want to remove.

默认值: None

wp_oembed_remove_provider() 参数

返回值

(boolean

True if provider was removed, False otherwise.

wp_oembed_remove_provider() 返回值

示例

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:

wp_oembed_remove_provider() 示例

历史

  • 添加于 版本: 3.5.0

wp_oembed_remove_provider() 历史

源文件

wp_oembed_remove_provider 函数的代码位于 wp-includes/media.php

wp_oembed_remove_provider() 源文件

相关