Unlock Hidden Powers: Transform Your WordPress Workflow with WP-CLI Today!
wp post delete $(wp post list --post_author=2 --format=ids)

How to manage WordPress themes with WP-CLI
The wp theme commands also let you carry out several theme-related tasks on a site.
wp theme list
To quickly view a list of all themes on the site, along with their status, whether an update is available, and the version number, enter the following command:
wp theme list

wp theme activate
You can activate a specific installed theme using the following command:




Post Comment