unescape_invalid_shortcodes( string $content ): string

Remove placeholders added by do_shortcodes_in_html_tags() .


Parameters

$content string Required
Content to search for placeholders.

Top ↑

Return

string Content with placeholders removed.


Top ↑

Source

File: wp-includes/shortcodes.php. View all references

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

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

	return $content;
}


Top ↑

Changelog

Changelog
Version Description
4.2.3 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.