shortcode_atts_{$shortcode} WordPress Filter Hook

This hook is called after the default attributes for a shortcode are merged with the user-provided attributes. It can be used to modify the merged attributes before they are passed to the shortcode handler.

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

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.


Top ↑

Parameters

$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.


Top ↑

Source

File: wp-includes/shortcodes.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Added the $shortcode parameter.
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.