On this page
remove_all_shortcodes()
Clears all shortcodes.
Description
This function clears all of the shortcode tags by replacing the shortcodes global with an empty array. This is actually an efficient method for removing all shortcodes.
Source
File: wp-includes/shortcodes.php. View all references
function remove_all_shortcodes() {
global $shortcode_tags;
$shortcode_tags = array();
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Embed::run_shortcode() wp-includes/class-wp-embed.php | Processes the [embed] shortcode. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/remove_all_shortcodes