wppaste
WordPress

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

Since
3.6.0, 4.4.0
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.

Compatibility

WordPress
since 4.4.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

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.

Where this hook fires · 1

  • wp-includes/shortcodes.php:690shortcode_atts()

Source code

		 *		 * @param array  $out       The output array of shortcode attributes.		 * @param array  $pairs     The supported attributes and their defaults.		 * @param array  $atts      The user defined shortcode attributes.		 * @param string $shortcode The shortcode name.		 */		$out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode );	} 	return $out;} /**

Changelog

Introduced in 3.6.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

4.4.0
Added the $shortcode parameter.from the docblock
3.6.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.