On this page
unescape_invalid_shortcodes( string $content ): string
Removes placeholders added by do_shortcodes_in_html_tags() .
Parameters
$contentstring Required-
Content to search for placeholders.
Return
string Content with placeholders removed.
Source
File: wp-includes/shortcodes.php. View all references
function unescape_invalid_shortcodes( $content ) {
// Clean up entire string, avoids re-parsing HTML.
$trans = array(
'[' => '[',
']' => ']',
);
$content = strtr( $content, $trans );
return $content;
}
Related
Used By
| Used By | Description |
|---|---|
| do_shortcode() wp-includes/shortcodes.php | Searches content for shortcodes and filter shortcodes through their hooks. |
| strip_shortcodes() wp-includes/shortcodes.php | Removes all shortcode tags from the given content. |
Changelog
| Version | Description |
|---|---|
| 4.2.3 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/unescape_invalid_shortcodes