Last active
December 19, 2018 20:07
-
-
Save BronsonQuick/5185918001f4df5c5d15 to your computer and use it in GitHub Desktop.
Delete ActionScheduler comments and scheduled-action post types in WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp comment list --field=comment_ID --'post_author'='ActionScheduler' --number=1000 | xargs wp comment delete --force | |
wp post list --field=ID --post_type=scheduled-action --posts_per_page=1000 | xargs wp post delete --force | |
wp post list --field=ID --post_type=scheduled-action --posts_per_page=1000 --post_status=trash | xargs wp post delete --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment