remove_all_shortcodes

函数


remove_all_shortcodes ( No parameters )
定义位置
  • wp-includes/shortcodes.php
    , line 117
引入
2.5.0
弃用

清除所有的短代码。

这个函数通过用一个空数组替换全局的短代码来清除所有的短代码标签。这实际上是一个删除所有短代码的有效方法。

function remove_all_shortcodes() {
	global $shortcode_tags;

	$shortcode_tags = array();
}