shortcode_atts_{$shortcode} – Hook | Developer.WordPress.org

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 );

View all references View on Trac View on GitHub

Changelog

VersionDescription
4.4.0Added the $shortcode parameter.
3.6.0Introduced.