🎁Start 2021 with 20% discounts on all products. Use coupon code: Holiday20
WP-CLI allows developers to use the WP-CLI command line tool to carry out tasks like adding or removing users, posts, changing categories, updating plugins and more. Follow these instructions below to use Disable Comments plugin commands with WP-CLI command line tool to perform tasks like changing the plugin settings and deleting comments.
To install and activate Disable Comments plugin via WP-CLI, run the command given below:
wp plugin install disable-comments --activate
To configure your settings in Disable Comments via WP-CLI, first run the command given below:
wp help disable-comments settings
Afterwards, enter the commands that you need to run to change your settings in Disable Comments. Some examples are given below.
wp disable-comments settings --types=all
wp disable-comments settings --types=post --add
wp disable-comments settings --types=page --remove
wp disable-comments settings --xmlrpc --rest-api
wp disable-comments settings --xmlrpc=false --rest-api=false
Disable Comments lets you permanently delete comments from your WordPress website with the ‘Delete Comments’ option. You can access the help guide for this option by running the following command:
wp help disable-comments delete
Note: Deleting comments will permanently remove them from your website and cannot be recovered without a database backup
Next, enter the commands that you need to run to delete comments from your WordPress website via WP-CLI. Some examples are given below.
wp disable-comments delete --types=all
wp disable-comments delete --types=post
wp disable-comments delete --types=post --extra-post-types=contact
wp disable-comments delete --comment-types=comment
By following the above guidelines you use Disable Comments plugin with WP-CLI command line tool.
If you face any difficulties, feel free to contact our support team or join our Facebook Community.
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
This site uses Akismet to reduce spam. Learn how your comment data is processed.