函数原型
remove_shortcode( string $tag )
函数描述
Removes hook for shortcode.
是否弃用
未弃用
函数参数
-
$tag
string
Required - Shortcode tag to remove hook for.
函数返回值
无
函数位置
File: wp-includes/shortcodes.php.
函数源码
function remove_shortcode( $tag ) {
global $shortcode_tags;
unset( $shortcode_tags[ $tag ] );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |

