WordPress at a glance
filter is not described

shortcode_atts_(shortcode) filter-hook . WP 3.6.0

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.

Usage

add_filter( 'shortcode_atts_(shortcode)', 'filter_function_name_2111', 10, 4 );
function filter_function_name_2111( $out, $pairs, $atts, $shortcode ){
	// filter...

	return $out;
}
$out(array)
The output array of shortcode attributes.
$pairs(array)
The supported attributes and their defaults.
$atts(array)
The user defined shortcode attributes.
$shortcode(string)
The shortcode name.

Notes

  • Since 4.4.0 Added the $shortcode parameter.

Where the hook is called

shortcode_atts()
wp-includes/shortcodes.php 557
$out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode );

Where the hook is used (in WP core)

wp-includes/widgets/class-wp-widget-text.php 257
add_filter( 'shortcode_atts_gallery', array( $this, '_filter_gallery_shortcode_attrs' ) );
wp-includes/widgets/class-wp-widget-text.php 310
remove_filter( 'shortcode_atts_gallery', array( $this, '_filter_gallery_shortcode_attrs' ) );
wp-includes/widgets/class-wp-widget-custom-html.php 125
add_filter( 'shortcode_atts_gallery', array( $this, '_filter_gallery_shortcode_attrs' ) );
wp-includes/widgets/class-wp-widget-custom-html.php 156
remove_filter( 'shortcode_atts_gallery', array( $this, '_filter_gallery_shortcode_attrs' ) );