Uma área de pesquisa sobre o WordPress para devs e autores do tema



shortcode_atts_{$shortcode} ›

Desde4.4.0
Obsoleton/a
apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode )
Parâmetros: (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
Definido em:
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.





Fonte

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