unescape_invalid_shortcodes

Advertisement

Summery Summery

Remove placeholders added by do_shortcodes_in_html_tags().

Syntax Syntax

unescape_invalid_shortcodes( string $content )

Parameters Parameters

$content

(string) (Required) Content to search for placeholders.

Return Return

(string) Content with placeholders removed.

Source Source

File: wp-includes/shortcodes.php

function unescape_invalid_shortcodes( $content ) {
	// Clean up entire string, avoids re-parsing HTML.
	$trans = array(
		'[' => '[',
		']' => ']',
	);

	$content = strtr( $content, $trans );

	return $content;
}

Advertisement

Changelog Changelog

Changelog
Version Description
4.2.3 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.