shortcode_atts_{$shortcode}

过滤钩子
apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode )
参数
  • (array) $out The output array of shortcode attributes.
    Required:
  • (array) $pairs The supported attributes and their defaults.
    Required:
  • (array) $atts The user defined shortcode attributes.
    Required:
  • (string) $shortcode The shortcode name.
    Required:
定义位置
相关勾子
pre_do_shortcode_tagdo_shortcode_tagshow_password_fields
相关方法
shortcode_attsget_shortcode_atts_regexhas_shortcoderemove_all_shortcodesshortcode_parse_attsshortcode_unautop
引入
4.4.0
弃用
-

过滤短码属性。

如果shortcode_atts()函数的第三个参数存在,那么这个过滤器就可用。第三个参数,$shortcode,是短码的名称。

$out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode );