A WordPress-centric search engine for devs and theme authors



shortcode_atts_{$shortcode} ›

Since4.4.0
Deprecatedn/a
apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode )
Parameters: (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
Defined at:
Codex:

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.





Source

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