tptn_shortcode_defaults
Filter the default shortcode attributes.
Type: filter
Since: 4.0.0
Source: includes/frontend/class-shortcodes.php line 61
Changelog
| Version | Description |
|---|---|
4.5.0 |
Added the $atts parameter. |
4.0.0 |
Introduced. |
Parameters
| Type | Name | Description |
|---|---|---|
array |
$default_atts |
Default shortcode attributes. |
array |
$atts |
Shortcode attributes. |
Usage
add_filter( 'tptn_shortcode_defaults', function($default_atts, $atts) {
// ...
return $default_atts;
} );