wphooks.info - strip_shortcodes_tagnames

strip_shortcodes_tagnames

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/shortcodes.php:
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
	$tags_to_remove = array_keys( $shortcode_tags );

	/**
	 * Filters the list of shortcode tags to remove from the content.
	 *
	 * @since 4.7.0
	 *
	 * @param array  $tags_to_remove Array of shortcode tags to remove.
	 * @param string $content        Content shortcodes are being removed from.
	 */
	$tags_to_remove = apply_filters( 'strip_shortcodes_tagnames', $tags_to_remove, $content );

	$tagnames = array_intersect( $tags_to_remove, $matches[1] );

	if ( empty( $tagnames ) ) {
		return $content;
	}

	$content = do_shortcodes_in_html_tags( $content, true, $tagnames );