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。這個過濾器是用來修改一個特定的短碼的輸出。它接受幾個引數,包括標籤名稱、屬性和內容。

過濾由短碼回撥建立的輸出。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );

常見問題

FAQs
檢視更多 >