Delete Posts and Comments from Action Scheduler

Reading Time: 2 minutes

The Action Scheduler is a background processing, queue job runner which is built into WooCommerce core. A number of plugins use the Action Scheduler, WooCommerce Subscriptions and WooCommerce Follow-Ups being two of the best known.

WP-CLI makes it easy to delete posts and comments which have been created by the Action Scheduler in WooCommerce. There may be cases where the Action Scheduler might create a large number of posts and comments on your live site, and you want to clear up the data from the site’s database.

 

Delete Comments from Action Scheduler

To delete comments created by the Action Scheduler, you can run this command:

wp comment list --field=comment_ID --'post_author'='ActionScheduler' --number=1000 | xargs wp comment delete --forceThe number can be increased if you have more comments that need to be deleted to 2000 or higher.

Delete Bulk Posts from Action Scheduler

To delete all of the scheduled-action posts, you can run this command:

wp post list --field=ID --post_type=scheduled-action --posts_per_page=1000 | xargs wp post delete --forceThe number can be increased if you have more posts that need to be deleted to say 2000 or higher.

Delete Scheduled Action Posts

To delete all of the scheduled-action posts with a post status of trash, you can run this command:

wp post list --field=ID --post_type=scheduled-action --posts_per_page=1000 --post_status=trash | xargs wp post delete --force

Delete Bulk Scheduled Actions

To delete all of the scheduled-action posts with a post status of cancel,  you can run this command:

wp post list --field=ID --post_type=scheduled-action --posts_per_page=1000 --post_status=cancel | xargs wp post delete --force

 

Using a mix of these commands, you will be able to delete posts and comments easily, using WP-CLI on your site. It will also keep your site database clean, allowing it to run more efficiently.  Take the work out of maintaining your WordPress site with our Managed WooCommerce product.  Our WooCommerce platform comes with free iThemes plugins curated especially for online stores.

What are Common Commands to Update WordPress Using WP-CLI?

Reading Time: 2 minutes

WP-CLI is a very handy set of commands. You can run anything that you would run in wp-admin on a WordPress site but from the command line. Useful commands which WP-CLI employs to keep WordPress core updated plugins including the default themes which come with WordPress.

Continue reading “What are Common Commands to Update WordPress Using WP-CLI?”

Migration to Managed WooCommerce

Reading Time: 2 minutes

Liquid Web is here to support your migration needs into our Managed WooCommerce Hosting platform. Whether you are migrating from an external or internal source, our in-house team of migration experts transforms the data migration process into a simple task. To ensure the smoothest and best possible data transfer, we have a quick overview and a few points for your consideration.

 

Our first step includes taking a copy of your live site (known as the origin site) and migrating it over to our Managed WooCommerce Hosting platform. Rest assured, when performing the migration, the only changes made to the site will be to assist in the movement. Within this timeframe, it is advised to avoid making changes or updates to the site as it will extend the migration timeline and could result in data loss. Changes and updates are included but not limited to themes, designs, contents, products, blog posts or WordPress versions. The initial sync process should result in no downtime for your live site.

Once the initial sync is complete, our Migration Specialists perform a series of basic tests to the site. During this time, our team will send information on ways to test out your new site to ensure that all aspects have carried over correctly and are in working order. Before going live, it is essential to take the time to thoroughly review your site and if at any point you do find a discrepancy our specialist is there to assist.

The third and most exciting step is the push to go live. We will coordinate the best date and time for the final sync of your site. This last sync will ensure the latest data on orders, products, and customers transfers to your new server. Upon completion of the final sync, you will be asked to update the staging domain’s name and DNS record. With a little DNS propagation time, you will begin to see the new site populate!

With the updating of DNS and the site name, you are now entirely done with the migration process. In subsequent steps, we will create a ticket with our Product Team to connect your store to our partnered applications, Glew and Jilt. Credentials to these valued applications will be sent out in an email, after which, our product team can suggest performance optimization methods to get the most out of your eCommerce store.

 

Knowing the details behind the migration process aligns us with our next step in creating a migration request from your Liquid Web control panel! Once completed, our Migration Specialists will be in touch to schedule the migration and answer any questions you may have.

 

Automatically Restore Stock Levels After Cancellation with WooCommerce

Reading Time: 1 minute

If you’re selling physical products with your WooCommerce store, you already know that accurate inventory counts are really important. You need to know how many t-shirts you have on hand, or if it’s time to restock specialty items after a big sale. With WooCommerce, it’s easy to see how much you’ve sold on your store and watch stock levels. 

When an order is cancelled or refunded, is there a way to have the stock level restored automatically on a WooCommerce store?

Continue reading “Automatically Restore Stock Levels After Cancellation with WooCommerce”

Offering Free Products on Your WooCommerce Store

Reading Time: 2 minutes

Did you know that offering free products or downloads can be a great way to increase your growing business? It might seem counter intuitive at first, but a great free offering can help get your name out there. It creates an opportunity for new customers to get to know you, and sing your praises, and then tell others about your products.

If I offer free products on my store, how do I remove unnecessary fields to make the checkout easier for those customers?

Continue reading “Offering Free Products on Your WooCommerce Store”

Using Glew on Managed WooCommerce Hosting

Reading Time: 2 minutes

When it comes to online purchases, store owners regularly live without the data they need. Now that you have Google Analytics set up, Managed WooCommerce Hosting further solves that problem for you by integrating with it via partnership with Glew.io. Glew helps you make the most out of the data you collect, so you can make the right decisions as your business grows. Continue reading “Using Glew on Managed WooCommerce Hosting”

Setting up Google Analytics Integration with Managed WooCommerce Hosting

Reading Time: 1 minute

Data is critical for store owners and Google Analytics is the standard for eCommerce. Integrating Google Analytics with your site can often be time consuming or difficult for some, but we’ve solved that for you in with our Managed WooCommerce Hosting product utilizing the WP Disable. You can link referrals to purchases, add transaction information to your Google Analytics data, and it offers enhanced eCommerce event tracking. Continue reading “Setting up Google Analytics Integration with Managed WooCommerce Hosting”

Using Jilt with Managed WooCommerce Hosting

Reading Time: 1 minute

All online store owners face potential lost revenue due to cart abandonment. We are very proud to offer Jilt integration with Managed WooCommerce Hosting as a way to address this problem, and we believe it will increase your store conversions and help you bring in more revenue. With Jilt, you can send personalized recovery emails encouraging your customers to complete their purchases. You can also establish an automatic schedule and then analyze these emails, to see which ones have the most positive impact on your business. Continue reading “Using Jilt with Managed WooCommerce Hosting”

Using Beaver Builder with Managed WooCommerce Hosting

Reading Time: 2 minutes

More than 500,000 sites have been designed and built with Beaver Builder. Each site looks unique and more importantly, the code used is lightweight, which means your store will load quickly while looking great. Managed WooCommerce Hosting includes Beaver Builder at no charge as part of our commitment to helping you grow your store. The best part? It works beautifully with Astra Pro. Continue reading “Using Beaver Builder with Managed WooCommerce Hosting”

Using PDF Invoices with Managed WooCommerce Hosting

Reading Time: 1 minute

Over 100,000 sites run the WooCommerce PDF Invoices and Packing Slips plugin. We knew this was the best way to attach PDF invoices to every order, so we’ve made sure it’s available to everyone using Managed WooCommerce Hosting.

With the WooCommerce PDF Invoice and Packing Slips plugin, you can: