remove_all_shortcodes() - WordPress 函数参考中文文档

返回介绍

remove_all_shortcodes()

发布于 2017-09-11 字数957 浏览 873 评论 0

remove_all_shortcodes()

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.


源代码

File: wp-includes/shortcodes.php

function remove_all_shortcodes() {
	global $shortcode_tags;

	$shortcode_tags = array();
}

更新日志

Version 描述
2.5.0 Introduced.

相关函数

Used By

  • wp-includes/class-wp-embed.php:
    WP_Embed::run_shortcode()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!