remove_shortcode()
remove_shortcode( string $tag ) 删除快捷方式的挂钩。Removes hook …
remove_shortcode( string $tag )
删除快捷方式的挂钩。
Removes hook for shortcode.
删除快捷方式的挂钩。
Removes hook for shortcode.
目录锚点:#参数#返回#源码
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $tag | (string) | 必需 | 要移除钩子的快捷方式标记。 |
返回(Return)
无返回值
源码(Source)
/**
* Removes hook for shortcode.
*
* @since 2.5.0
*
* @global array $shortcode_tags
*
* @param string $tag Shortcode tag to remove hook for.
*/
function remove_shortcode($tag) {
global $shortcode_tags;
unset($shortcode_tags[$tag]);
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 2.5.0 | wp-includes/shortcodes.php:91 | 0 | 0 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!