strip_shortcodes_tagnames

过滤钩子
apply_filters( 'strip_shortcodes_tagnames', $tags_to_remove, $content )
参数
  • (array) $tags_to_remove Array of shortcode tags to remove.
    Required:
  • (string) $content Content shortcodes are being removed from.
    Required:
定义位置
相关勾子
do_shortcode_tagpre_do_shortcode_tagscript_loader_tagwp_sitemaps_taxonomieswp_audio_shortcode_library
相关方法
strip_shortcode_tagstrip_shortcodesdo_shortcode_tagdo_shortcodes_in_html_tagsshortcode_attsshortcode_exists
引入
4.7.0
弃用
-

strip_shortcodes_tagnames: 这是一个WordPress的过滤钩子,允许开发者从注册的短代码列表中删除短代码。这对那些不再使用或需要暂时禁用的短代码很有用。

过滤要从内容中删除的短码标签列表。

$tags_to_remove = apply_filters( 'strip_shortcodes_tagnames', $tags_to_remove, $content );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-01-29 11:09:38

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: