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

Filters a shortcode’s default 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

$out

The output array of shortcode attributes.

$pairs

The supported attributes and their defaults.

$atts

The user defined shortcode attributes.

$shortcode

The shortcode name.


Source

File: wp-includes/shortcodes.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Added the $shortcode parameter.
WP-3.6.0 Introduced.