In a recent Business Bloomer Club Slack thread, a user sought help with bulk updating products using WP CLI after importing over 500 products via WP All Import. While the import process was successful, an issue persisted: the product breadcrumbs were still showing the old product category.
Interestingly, the problem was resolved simply by resaving the product, even without making any changes. The user was looking for a more efficient way to trigger this update for all products without manually saving each one.
WP CLI is a powerful tool for WordPress users, providing a command-line interface for managing WordPress sites. It can be used to perform bulk updates and automate various tasks, including product updates for WooCommerce. However, WP CLI doesn’t natively support product imports or updates with WP All Import, and the specific issue of re-saving products to refresh breadcrumbs required some creative thinking.
Continue reading WooCommerce: Bulk Updating Products with WP CLI