wpseek.com
A WordPress-centric search engine for devs and theme authors



unescape_invalid_shortcodes › WordPress Function

Since4.2.3
Deprecatedn/a
unescape_invalid_shortcodes ( $content )
Parameters:
  • (string) $content Content to search for placeholders.
    Required: Yes
Returns:
  • (string) Content with placeholders removed.
Defined at:
Codex:

Removes placeholders added by do_shortcodes_in_html_tags().



Source

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

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

	return $content;
}