Un motore di ricerca WordPress per sviluppatori e autori di temi



unescape_invalid_shortcodes ›

Da4.2.3
Deprecaton/a
unescape_invalid_shortcodes ( $content )
Parametri:
  • (string) $content Content to search for placeholders.
    Richiesto:
Ritorna:
  • (string) Content with placeholders removed.
Definito a:
Codex:

Remove placeholders added by do_shortcodes_in_html_tags().



Sorgenti

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

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

	return $content;
}