remove_shortcode()

删除快捷方式的挂钩。

remove_shortcode(string $tag)

参数(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.0wp-includes/shortcodes.php:9100
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索