remove_all_shortcodes()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
remove_all_shortcodes()
Описание
Эта функция очищает все теги шорткодов, заменяя глобальную переменную шорткодов пустым массивом. Фактически это эффективный способ удалить все шорткоды.
Оригинал (английский)
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.
Исходный код
wp-includes/shortcodes.php:117
function remove_all_shortcodes() {
global $shortcode_tags;
$shortcode_tags = array();
}
История изменений
| Версия | Описание |
|---|---|
| 2.5.0 | Introduced. |

