W3cubDocs

/WordPress

apply_filters( ‘strip_shortcodes_tagnames’, array $tags_to_remove, string $content )

Filters the list of shortcode tags to remove from the content.

Parameters

$tags_to_removearray
Array of shortcode tags to remove.
$contentstring
Content shortcodes are being removed from.

Source

$tags_to_remove = apply_filters( 'strip_shortcodes_tagnames', $tags_to_remove, $content );

Changelog

Version Description
4.7.0 Introduced.

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