unescape_invalid_shortcodes( string $content )

Remove placeholders added by do_shortcodes_in_html_tags().


Description Description


Parameters Parameters

$content

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


Top ↑

Return Return

(string) Content with placeholders removed.


Top ↑

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;
}

Top ↑

Changelog Changelog

Changelog
Version Description
4.2.3 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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