Removing WP Bakery Shortcodes

After migrating to Gutenberg editor, batch removal of all Visual Composer / WP Bakery shortcodes from WooCommerce products using MySQL for https://albumen-gallery.com

UPDATE wp_posts SET post_content = REGEXP_REPLACE(post_content, '\\[\/?vc(.*?)\]', '') WHERE `post_type` = 'product' AND `post_content` LIKE '%[vc_%';

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *