Used By
| Used By | Description |
|---|---|
| wp-includes/shortcodes.php: do_shortcode() | Search content for shortcodes and filter shortcodes through their hooks. |
| wp-includes/shortcodes.php: strip_shortcodes() | Remove all shortcode tags from the given content. |
Remove placeholders added by do_shortcodes_in_html_tags().
(string) (Required) Content to search for placeholders.
(string) Content with placeholders removed.
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;
} | Version | Description |
|---|---|
| 4.2.3 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/unescape_invalid_shortcodes