strip_shortcodes_tagnames

strip_shortcodes_tagnames

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('strip_shortcodes_tagnames') is found 1 times:

  • /wp-includes/shortcodes.php line 730
    	 *
    	 * @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;
    	}