Used By
| Used By | Description |
|---|---|
| wp-includes/class-wp-embed.php: WP_Embed::run_shortcode() | Process the [embed] shortcode. |
Clear all shortcodes.
This function is simple, it clears all of the shortcode tags by replacing the shortcodes global by a empty array. This is actually a very efficient method for removing all shortcodes.
File: wp-includes/shortcodes.php
function remove_all_shortcodes() {
global $shortcode_tags;
$shortcode_tags = array();
} | Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/remove_all_shortcodes