Wordpress:删除内容生成器简码

Wordpress: Strip out content builder shortcodes

我有一个包含很多内容(大约 5000 个帖子)的 WP 站点。这些帖子包含(在 post_content 中)来自内容构建器的过时简码,我需要将其永久删除:

[av_three_fifth first] [av_textblock size=“ font_color=“ color=“ av-medium-font-size=“ av-small-font-size=“ av-mini-font-size=“ admin_preview_bg=“] 
Nunc nec neque. Curabitur blandit mollis lacus. Quisque malesuada placerat nisl. Aenean vulputate eleifend tellus. Vestibulum fringilla pede sit amet augue.

Maecenas vestibulum mollis diam. Cras id dui. Vestibulum ullamcorper mauris at ligula. Fusce commodo aliquam arcu. Donec interdum, metus et hendrerit aliquet, dolor diam sagittis ligula, eget egestas libero turpis vel mi.

Sed a libero. In ac felis quis tortor malesuada pretium. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed aliquam, nisi quis porttitor congue, elit erat euismod orci, ac placerat dolor lectus quis orci. Aenean posuere, tortor sed cursus feugiat, nunc augue blandit nunc, eu sollicitudin urna dolor sagittis lacus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Fusce id purus.
[/av_textblock] [/av_three_fifth]

我是否有机会想出一个复杂的正则表达式来删除这些字符串?问题是其中很多都是非常多样的,所以我担心这里没有“一刀切”的解决方案......

TIA 寻求您的帮助/想法!

通过隐藏损坏的短代码的免费 WP 插件管理到“semi-solve”:https://wordpress.org/plugins/hide-broken-shortcodes/

我想我会分享它以防其他人需要它。