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
- Stopping Google StoreBot Crawler Spam: A Targeted ApproachGoogle StoreBot crawler, a bot designed to collect product data for Google Search, has been abusing its...
- The Real Person Badge | CleanTalk Anti-SpamThe Real Person Badge A benchmark system for WordPress that separates real users from bots. The...
- How the CleanTalk Anti-Spam API Works. API Main HelpAPI Main Help Method "check_newuser" Method "check_message" Send_feedback Built-In...