remove_all_shortcodes()注销删除所有的短标签钩子

目录

描述

Clears all shortcode hooks.

remove_all_shortcodes() 描述

用法

<?php remove_all_shortcodes(); ?>

remove_all_shortcodes() 用法

参数

(none) 

remove_all_shortcodes() 参数

返回值

(none) 

remove_all_shortcodes() 返回值

注意

This function clears all of the shortcode tags by replacing the shortcodes global with an empty array. This is a very efficient method for removing all shortcodes.

remove_all_shortcodes() 注意

历史

添加于 版本: 2.5

remove_all_shortcodes() 历史

源文件

remove_all_shortcodes() 函数的代码位于 wp-includes/shortcodes.php.

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */
/**
 * 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();
}

remove_all_shortcodes() 源文件

相关