strip_shortcodes_tagnames WordPress Filter Hook
The strip_shortcodes_tagnames WordPress hook is used to filter the list of shortcodes that are to be stripped from the content before it is passed to the do_shortcode() function. This hook is useful for plugins that want to prevent certain shortcodes from being executed.
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_remove
(array)Array of shortcode tags to remove.
- $content
(string)Content shortcodes are being removed from.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |