apply_filters( “shortcode_atts_{$shortcode}”, array $out, array $pairs, array $atts, string $shortcode )

In this article

Filters shortcode attributes.

Description

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.

Parameters

$outarray
The output array of shortcode attributes.
$pairsarray
The supported attributes and their defaults.
$attsarray
The user defined shortcode attributes.
$shortcodestring
The shortcode name.

Source

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

Changelog

VersionDescription
4.4.0Added the $shortcode parameter.
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.