Developer Reference
Constants
| Constant | Value | Description |
|---|---|---|
WCOPS_PRO_VERSION | 1.0.0 | Plugin version |
WCOPS_PRO_PLUGIN_FILE | __FILE__ | Main plugin file |
WCOPS_PRO_PLUGIN_DIR | plugin_dir_path() | Plugin directory |
WCOPS_PRO_PLUGIN_URL | plugin_dir_url() | Plugin URL |
WCOPS_PRO_REST_NAMESPACE | windcodex-ops/v1 | REST namespace (same as the free plugin) |
WCOPS_PRO_REST_ROUTE | /mcp | MCP route |
WCOPS_PRO_LICENSE_OPTION | wcops_pro_license_key | License key option name |
WCOPS_PRO_LICENSE_STATUS_OPTION | wcops_pro_license_status | License status option name |
REST Routes
| Route | Method | Description |
|---|---|---|
/wp-json/windcodex-ops/v1/mcp | POST | MCP JSON-RPC endpoint (Bearer token) |
/wp-json/windcodex-ops/v1/oauth/register | POST | Dynamic client registration |
/wp-json/windcodex-ops/v1/oauth/token | POST | Token exchange and refresh |
/wp-json/windcodex-ops/v1/compare-summary | GET | Shared-key summary used by wp_compare_with_staging |
/wcops-oauth/authorize | GET/POST | Consent screen (rewrite rule) |
Options
| Option | Description |
|---|---|
wcops_settings | All settings (shared with Ops) |
wcops_pro_license_key | License key |
wcops_pro_license_status | Cached license status |
Notable keys in wcops_settings: tool_groups, requests_per_minute_limit (10-600, default 120), undo_window_hours (72, 96, or 168), hubspot_api_key, allow_dynamic_registration, delete_data_on_uninstall.
Filters
| Filter | Arguments | Description |
|---|---|---|
wcops_pro_ability_capability | $capability, $tool_name, $destructive | Change the capability required to run a tool through the Abilities API |
Default capabilities: manage_woocommerce for woo_* tools; edit_posts / delete_posts (destructive) for content-style tools; manage_options for everything else (users, security, site health, advanced admin, memory).
add_filter( 'wcops_pro_ability_capability', function ( $capability, $tool_name, $destructive ) {
if ( 0 === strpos( $tool_name, 'woo_' ) && ! $destructive ) {
return 'edit_shop_orders';
}
return $capability;
}, 10, 3 );WordPress Abilities API
On WordPress 6.9+, each tool is registered as an ability under the windcodex-ops category, named windcodex-ops/<tool-name-with-dashes>.
The MCP endpoint and Abilities API are the supported integration surfaces. Internal PHP classes are not a public API.