Inline documentation for hooks in wp-includes/shortcodes.php.
props natejacobs. see #25229. git-svn-id: https://develop.svn.wordpress.org/trunk@25423 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5959a7011b
commit
d60cbb399e
@ -338,7 +338,18 @@ function shortcode_atts( $pairs, $atts, $shortcode = '' ) {
|
||||
else
|
||||
$out[$name] = $default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter 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.
|
||||
*
|
||||
* @since 3.6.0
|
||||
*
|
||||
* @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.
|
||||
*/
|
||||
if ( $shortcode )
|
||||
$out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user