remove_all_shortcodes()
remove_all_shortcodes() 清除所有缺点。Clear all shortcodes. 目录…
remove_all_shortcodes()
清除所有缺点。
Clear 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 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

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