remove_all_shortcodes
函数
remove_all_shortcodes ( No parameters )
- 定义位置
-
-
wp-includes/shortcodes.php
, line 117
-
wp-includes/shortcodes.php
- 引入
- 2.5.0
- 弃用
- –
清除所有的短代码。
这个函数通过用一个空数组替换全局的短代码来清除所有的短代码标签。这实际上是一个删除所有短代码的有效方法。
function remove_all_shortcodes() { global $shortcode_tags; $shortcode_tags = array(); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。