Set TranslatePress license key is a WordPress ability from TranslatePress — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Set TranslatePress license key

Write
TranslatePress Content & Tools translatepress/set-license-key

Save a TranslatePress license key and trigger a live validation check against TranslatePress's licensing servers.

Requires the TranslatePress plugin on WordPress 6.9+ (or the Abilities API feature plugin). All abilities require the current user to have the 'manage_options' capability.

What it does

This ability stores a license key in the trp_license_key option and immediately forces a remote validation check via TRP_AI_API_Key_Check::force_check_tp_api_key(), mirroring the same flow used during onboarding. If the license comes back invalid, expired, revoked, or otherwise rejected, the ability returns a WP_Error with a message describing the specific licensing problem (e.g. expired, revoked, activation limit reached). On success it also syncs the license with TranslatePress's machine-translation API when available, and returns the resulting license status string.

See it in action

You ask your AI assistant

"Activate my TranslatePress license using the key XXXX-XXXX-XXXX-XXXX."

Inputs

Name Type Required Description
license_key string Yes The license key to activate.

Returns

An object containing the resulting license status string (from the trp_license_status option) after the validation check.

Permission

The current user must have the 'manage_options' capability; otherwise the ability returns a 403 WP_Error.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.