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.


Top ↑

Source

File: wp-includes/shortcodes.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.