W3cubDocs

/WordPress

apply_filters( ‘do_shortcode_tag’, string $output, string $tag, array $attr, array $m )

Filters the output created by a shortcode callback.

Parameters

$outputstring
Shortcode output.
$tagstring
Shortcode name.
$attrarray
Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
$marray
Regular expression match array.

Source

return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );

Changelog

Version Description
6.5.0 The $attr parameter is always an array.
4.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/do_shortcode_tag