strip_shortcodes_tagnames filter-hookWP 4.7.0

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

Usage

add_filter( 'strip_shortcodes_tagnames', 'wp_kama_strip_shortcodes_tagnames_filter', 10, 2 );

/**
 * Function for `strip_shortcodes_tagnames` filter-hook.
 * 
 * @param array  $tags_to_remove Array of shortcode tags to remove.
 * @param string $content        Content shortcodes are being removed from.
 *
 * @return array
 */
function wp_kama_strip_shortcodes_tagnames_filter( $tags_to_remove, $content ){

	// filter...
	return $tags_to_remove;
}
$tags_to_remove(array)
Array of shortcode tags to remove.
$content(string)
Content shortcodes are being removed from.

Changelog

Since 4.7.0 Introduced.

Where the hook is called

strip_shortcodes()
strip_shortcodes_tagnames
wp-includes/shortcodes.php 650
$tags_to_remove = apply_filters( 'strip_shortcodes_tagnames', $tags_to_remove, $content );

Where the hook is used in WordPress

Usage not found.