WordPress开发者和主题制作者的搜索引擎



shortcode_atts_{$shortcode} ›

Since4.4.0
已弃用n/a
apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode )
参数: (4)
  • (array) $out The output array of shortcode attributes.
    Required: Yes
  • (array) $pairs The supported attributes and their defaults.
    Required: Yes
  • (array) $atts The user defined shortcode attributes.
    Required: Yes
  • (string) $shortcode The shortcode name.
    Required: Yes
定义在:
文档:

Filters a shortcode's default attributes.

If the third parameter of the shortcode_atts() function is present then this filter is available. The third parameter, $shortcode, is the name of the shortcode.





源码

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