remove_all_shortcodes()
remove_all_shortcodes()
清除所有缺点。
Clear all shortcodes.
说明(Description)
这个函数很简单,它通过用空数组替换shortcode全局来清除所有的shortcode标记。这实际上是消除所有缺点的非常有效的方法。
返回(Return)
无返回值
源码(Source)
/** * Clear all shortcodes. * * This function is simple, it clears all of the shortcode tags by replacing the * shortcodes global by a empty array. This is actually a very efficient method * for removing all shortcodes. * * @since 2.5.0 * * @global array $shortcode_tags */ function remove_all_shortcodes() { global $shortcode_tags; $shortcode_tags = array(); }
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-includes/shortcodes.php:108 | 1 function | 0 |
remove_all_shortcodes() 为WP2原创文章,链接:https://www.wp2.cn/functions/remove_all_shortcodes/