外掛標籤
開發者團隊
原文外掛簡介
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.
