How to use WP-CLI with the Anti-Spam plugin
WP-CLI is a command-line tool for WordPress development and administrative tasks. It offers a variety of commands to help you efficiently manage the CleanTalk Anti-Spam plugin without having to log in to the dashboard.
Requirements
1) Install the latest version of the WP-CLI tool on your server.
2) Install our Anti-Spam plugin. Changes have been made since version 6.25.
How to use
Open your command-line tool and enter:
wp cleantalk
You'll see prompts:
usage: wp cleantalk create
or: wp cleantalk settings
or: wp cleantalk templateSee "wp help cleantalk <command>" for more information on a specific command.
Available commands:
Adding a service: (you can find a token in your profile)
wp cleantalk create --token=your_token --domain=sitename.com
Switch settings:
You can disable the SpamFireWall option using this command:
wp cleantalk settings --spamfirewall=off
Or enable it:
wp cleantalk settings --spamfirewall=on
You can also use the following commands instead of SpamFireWall:
- registrationsform
- commentsform
- contactsform
- searchform
- checkexternal
- checkinternal
Using template settings:
Get a list of available templates:
wp cleantalk template list
Set a template:
wp cleantalk template set --id=template_id
Reset settings to default:
wp cleantalk template set reset
If you haven't found the answer to your question, please, contact our support team.
It would also be interesting
- What Type of License Use for WordPress Multisite Environment (WPMS)?What Type of License to Use for WordPress Multisite Environment (WPMS)? Depending on your needs...
- How to Install CleanTalk Anti-Spam on WordPress MULTISITE (WPMS)Installing CleanTalk on WordPress MULTISITE (WPMS) 1. Firstly, be sure you configured the network...
- White Label Option for WordPress Multisite in the Anti-Spam Plugin by CleanTalkHow to use the Anti-Spam White Label Option for WordPress Multisite Attention! The following instruction...