do_shortcode_tag

过滤钩子
apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m )
参数
  • (string) $output Shortcode output.
    Required:
  • (string) $tag Shortcode name.
    Required:
  • (array|string) $attr Shortcode attributes array or empty string.
    Required:
  • (array) $m Regular expression match array.
    Required:
定义位置
相关勾子
pre_do_shortcode_tagstrip_shortcodes_tagnameswp_audio_shortcode_librarywp_video_shortcode_librarystyle_loader_tag
相关方法
do_shortcode_tagdo_shortcodestrip_shortcode_tagadd_shortcodedo_shortcodes_in_html_tagsshortcode_atts
引入
4.7.0
弃用
-

do_shortcode_tag。这个过滤器是用来修改一个特定的短码的输出。它接受几个参数,包括标签名称、属性和内容。

过滤由短码回调创建的输出。

return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 14:32:54

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

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

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