Command-Line Feature for WP-Optimize

We’ve added WP-CLI support to the Premium version of our WP-Optimize Premium plugin.

WP-CLI is the command-line interface for WordPress that allows you to do all kinds of things, such as updating plugins and configuring multisite installs, without using a web browser.

Including it in WP-Optimize Premium means that you will now be able to run optimization commands directly on command-line. During this operation, WP-Oprtimize will perform in exactly the same way, but it will produce a detailed output on screen to show you what’s happening.

This feature is mainly for the experienced user, but it’s easy enough for anyone to set up and run. Here’s how it works:

  1. Before running an optimization, you will need to gather a list of optimizations available to you on command-line. To do this, you will need to run the following:

wp optimize optimizations

This will bring out the list of optimizations, as below:

optimizetables Optimise database tables
revisions Clean all post revisions
trash Clean all trashed posts
spam Remove spam and binned comments
unapproved Remove unapproved comments
attachments Remove orphaned attachments
transient Remove expired transient options
pingbacks Remove pingbacks
trackbacks Remove trackbacks
postmeta Clean post meta data
commentmeta Clean comment meta data
orphandata Clean orphaned relationship data
  1. When you have chosen your optimizations, you can then run them on the command-line (the example below uses the orphandata optimization):
wp optimize do-optimization --optimization-id=orphandata
  1. Once complete, the output will show something like this:

Success: 0 orphaned meta data deleted across 14 sites

You can also run multiple optimizations on command-line by placing a comma after each optimization (the example below uses both orphandata and revisions optimization);

Success: 0 orphaned meta data deleted across 14 sites

Success: 0 post revisions deleted across 14 sites

All Commands start with wp optimize and these are the full options available:

version To return the current WP-Optimize version.
Displays a full list of commands (as see up above) to optimize
do-optimization --optimization-id=
Running the selected optimization
Add this just after wp to specify the wordpress install e.g. wp –path=/var/www/html/work/multisite optimize do-optimization –optimization-id=orphandata


The post New Command-Line Feature for WP-Optimize appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.

WP-Optimize has a brand new Premium version!

With spring around the corner, we thought we’d cheer you up with exciting news: the launch of our WP-Optimize Premium version.

It’s hard to believe it was over a year ago that we acquired WP-Optimize, WordPress’ most popular clean-up plugin. We love everything it’s about: how it optimizes databases, gets rid of all useless and unwanted data to make WP websites everywhere neater, faster and more efficient. We also rate its incredible ease of use, and how it automates what would otherwise require a great deal of time, effort, and technical knowledge.

Here’s a reminder of some of the brilliant things WP-Optimize does:

  • Regular clean-up scheduling
  • Database table stats
  • Enables/ disables trackbacks and comments for published posts
  • Retains certain weeks’ worth of data during clean-ups
  • Automatically cleans up auto draft posts and all integrated options (if retention enabled)
  • Can be enabled for Administrators only
  • Mobile friendly

But good as it is, our UpdraftPlus team always saw its potential to become even better. So these past months, we’ve been working hard to create a whole load of extra features, which we’ve crammed into the ultimate version: WP-Optimize Premium.

‘What does this new, ultimate version do?’ we hear you ask. We’ll keep you in suspense no longer! With WP-Optimize Premium, you’ll be able to…

  • Optimize any site (or combination of sites) on your WordPress Multisite or network
  • Select one or a combination of over a dozen optimization options and the ability to optimize an individual table
  • Remove orphaned images and images exceeding certain size limits, unused or registered from WordPress sites
  • Schedule in a more specific, sophisticated optimization timetable
  • Send log messages to three additional locations: Slack, Syslog, and Simple History
  • Run optimization commands with the WP CLI interface
  • Fast-tracked support from our expert developers
  • Enjoy our seamless graphical user interface

… plus, we’re planning even more. Watch this space! If you already use WP-Optimize, we know you’re going to absolutely love this Premium version! It’s available for purchase at 20% off today. Simply go here, and use coupon launch20off voucher code at the checkout. The promo will end on 16 March 2018.


The post WP-Optimize has a brand new Premium version! appeared first on UpdraftPlus. UpdraftPlus – Backup, restore and migration plugin for WordPress.