Uma área de pesquisa sobre o WordPress para devs e autores do tema



unescape_invalid_shortcodes ›

Desde4.2.3
Obsoleton/a
unescape_invalid_shortcodes ( $content )
Parâmetros:
  • (string) $content Content to search for placeholders.
    Required: Yes
Retorna:
  • (string) Content with placeholders removed.
Definido em:
Codex:

Remove placeholders added by do_shortcodes_in_html_tags().



Fonte

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

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

	return $content;
}