Enable Automatic Translation 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 →Enable Automatic Translation
WriteTurns on TranslatePress's Automatic Translation, optionally selecting which translation engine to use.
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 turns on Automatic Translation by writing to the trp_machine_translation_settings option. It resolves the translation engine in order of priority: an explicit engine input if supplied, otherwise the already-configured engine, otherwise it defaults to 'mtapi' (TranslatePress AI). A valid TranslatePress license is required only when the resolved engine is mtapi; third-party engines like Google Translate (google_translate_v2) and DeepL use their own API keys and are not license-gated, so calling this with one of those engines works even without an active TranslatePress license. If mtapi is resolved but no valid license is active, the ability returns an error suggesting the caller activate a license first via translatepress/set-license-key or pass a different engine.
See it in action
You ask your AI assistant
"Turn on automatic translation for my site using the DeepL engine."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| engine | string | No | Translation-engine slug to select (e.g. 'mtapi', 'google_translate_v2', 'deepl'). When omitted, keeps the already-configured engine, or defaults to 'mtapi' if none is configured. |
Returns
An object with 'machine_translation' (always 'yes' on success) and 'translation_engine' (the resolved engine slug now active).
Permission
The current user must have the 'manage_options' capability; otherwise the ability returns a 403 WP_Error.
More TranslatePress abilities
Add a translation language
Add a new translation language to TranslatePress, subject to the current license's language limit.
List available language codes
Return the full catalog of locale codes TranslatePress recognizes, each with its English name.
List configured languages
Retrieve the languages currently configured in TranslatePress, including which is the default and which are published.
Remove a translation language
Remove a configured translation language from TranslatePress.
Set the default language
Promote an already-configured language to be TranslatePress's site default.
Set TranslatePress license key
Save a TranslatePress license key and trigger a live validation check against TranslatePress's licensing servers.