pre_do_shortcode_tag

过滤钩子
apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m )
参数
  • (false|string) $return Short-circuit return value. Either false or the value to replace the shortcode with.
    Required:
  • (string) $tag Shortcode name.
    Required:
  • (array|string) $attr Shortcode attributes array or empty string.
    Required:
  • (array) $m Regular expression match array.
    Required:
定义位置
相关勾子
do_shortcode_tagwp_audio_shortcode_librarywp_video_shortcode_librarystrip_shortcodes_tagnamespre_get_shortlink
相关方法
do_shortcode_tagstrip_shortcode_tagdo_shortcodewp_video_shortcodewp_audio_shortcoderemove_shortcode
引入
4.7.0
弃用
-

pre_do_shortcode_tag: 这是WordPress的一个过滤钩子,允许你在do_shortcode函数处理之前修改一个短码的输出。该钩子在指定的短码标签被处理之前被触发,允许你修改或替换短码的输出。

筛选是否调用短代码回调。

从过滤器返回一个非假值将使短代码生成过程短路,而是返回该值。

$return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-14 16:36:35

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

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

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