Discount Master shares its main actions with AI assistants through the WordPress Abilities API, so you can manage WooCommerce discounts with Claude: ask it to list your rules, create a sale, switch rules on or off, or export them, in plain words. It needs WordPress 6.9 or later and a connector plugin.
What this feature does
Since version 2.6.0, Discount Master registers its rules, settings and import/export as WordPress abilities. A connector plugin turns those abilities into an MCP server, and Claude connects to that server as a custom connector. From then on Claude can read and change your discount rules the same way you do in the plugin, with the same checks a save in the editor runs.
What Claude can do
| Ability | What it does |
|---|---|
dmfwc/list-rules | Lists the rules with their status and dates, optionally only one status. |
dmfwc/get-rule | Returns one rule. |
dmfwc/create-rule | Creates a rule, checked like a save in the editor. It starts switched off unless Claude is told to switch it on. |
dmfwc/update-rule | Changes only the fields sent. Actions, conditions and tiers are replaced as a whole. |
dmfwc/activate-rules, dmfwc/deactivate-rules | Switches rules on or off. |
dmfwc/duplicate-rule | Creates a switched-off copy of a rule. |
dmfwc/delete-rules | Permanently deletes rules. |
dmfwc/get-settings, dmfwc/update-settings | Reads and changes Discount Master settings, checked like a save on the Settings screen. |
dmfwc/export-rules, dmfwc/import-rules | Exports every rule as CSV text, or imports up to 500 rules from it. Imported rules start switched off and existing rules are not touched. |
How to manage WooCommerce discounts with Claude
- Update WordPress to 6.9 or later. The Abilities API is part of WordPress core from 6.9.
- Install a connector plugin. For example AI Engine or the WordPress MCP Adapter. Activate it and turn on its MCP server, following its own instructions.
- Add the server to Claude. In Claude, add the MCP server address shown by the connector plugin as a custom connector.
- Check the connection. Open Discount Master › Settings › Advanced. The Use with Claude box says whether it found a connector plugin. Then ask Claude, for example, “List my Discount Master rules”.
Every ability needs the Administrator role (manage_options), and the connector signs in as one user. Claude can do anything these abilities allow, including deleting rules. Review what Claude proposes before you let it change live prices, and keep an export of your rules.
Requirements
- Discount Master 2.6.0 or later.
- WordPress 6.9 or later. On older versions the Use with Claude box asks you to update.
- A connector plugin with an MCP server, such as AI Engine or the WordPress MCP Adapter.
- A site reachable on public HTTPS. A local or password-protected site will not work.
Common workflows
- Plan a sale in one sentence: “Create a 20% off rule for the Hoodies category from Friday to Monday, switched off.” Then review it in the editor and switch it on yourself.
- Clean up: “List every switched-off rule that ended before this month.”
- Copy rules to another store: export the rules on one site and import them on the other, where they arrive switched off.
Troubleshooting
The Use with Claude box says No connector plugin found
The box looks for AI Engine and the WordPress MCP Adapter. If you use another connector, it can still work: check its own instructions.
Claude cannot see the Discount Master abilities
Check that the user the connector signs in with is an Administrator, and that your site is on WordPress 6.9 or later.
Claude reports that rule rows have the wrong layout
Ask Claude to read an existing rule with dmfwc/get-rule first: create-rule and update-rule accept rules in that same shape.

