AI Multisite Translate

Description

Translate your WordPress multisite network into multiple languages using AI language models.
This plugin allows you to easily translate content across all sites in your WordPress multisite network while retaining the original formatting and structure.

It works out of the box with Gutenberg blocks and classic editor content, ensuring that all your content is translated accurately and efficiently.

Please note that this plugin requires the WordPress 7.0 AI Services API.
The AI Services API requires an API key from any one of the supported providers and could incur costs based on usage. This plugin is designed to be a powerful tool for multilingual content management, but users should be aware of the potential costs associated with AI translation services.
AI is not perfect and can make mistakes. Translations may not be perfect and should be reviewed for accuracy, especially for critical content. We recommend a full backup of your site before using the translation features, as translations overwrite existing content and cannot be undone without restoring a backup.

ACF/ACF PRO Extension – Coming Soon

If you are using Advanced Custom Fields (ACF) and want to translate custom fields, you will need to install the ACF extension for this plugin.
This extension adds support for translating all ACF fields, including ACF Pro fields such as repeaters and flexible content.

DIVI Extension – Coming Soon

Elementor Extension – Coming Soon

Filters and Actions for Developers

This plugin includes several filters and actions that developers can use to extend its functionality. Plugin documentation will be available soon with details on how to use these hooks to customise the translation process, add support for additional content types, and integrate with other plugins and themes.

By default, only posts and pages are included in the bulk translation process. Developers can use the aimstr_translatable_post_types filter to restrict or extend the post types included in the translation process. This allows for greater flexibility and customisation when translating content across a WordPress multisite network.

To translate only posts (skipping pages and all custom post types):

add_filter( 'aimstr_translatable_post_types', function( $post_types, $site_id ) {
    return [ 'post' ]; // Only translate posts, skip pages and CPTs
}, 10, 2 );

To include an additional custom post type (e.g. “service”):

add_filter( 'aimstr_translatable_post_types', function( $post_types, $site_id ) {
    $post_types[] = 'service';
    return $post_types;
}, 10, 2 );

The $site_id parameter allows different post types to be specified per site, which is useful on networks where subsites have different custom post types registered.

Screenshots

  • AI Language settings for each site in the network.
  • Bulk translation options.
  • AI translation action within the editor.

Installation

This plugin is for use on WordPress multisite networks and requires WordPress 7.0 or higher and PHP 8.1 or higher.

  1. Upload the plugin files to the /wp-content/plugins/ai-multisite-translate directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Go to My Sites > Network Admin > Sites and click on the “AI Language” link for each site to ensure the correct languages are set up for each site in the network (the plugin will attempt to detect the language based on the site language settings but you can override this if needed).
  4. Go to Network Admin > Settings > Connectors to set up your AI API key and select your preferred AI provider.
  5. Once your API key is set up, you can go to any page on your WordPress multisite network and use the “Translate with AI” button in the editor to translate your content into the languages that you have set for your sites in the network (you can set the site language in Settings > General for each site in your network).

Reviews

There are no reviews for this plugin.

Contributors & Developers

“AI Multisite Translate” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.1

  • Added aimstr_translatable_post_types filter to allow developers to customise which post types are included in the bulk translation process.

1.0.0

  • Initial Release