Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/aventyret/akka-headless-wp-multilang/archive/refs/heads/main.zipThis plugin enables multilang when running Akka headless Wordpress.
Installation
Add this repository to you composer.json:
"repositories": [
...
{
"type": "vcs",
"url": "https://github.com/Aventyret/akka-headless-wp-multilang.git"
}
Install the plugin:
composer require aventyret/akka-headless-wp-multilang
Activate the plugin in your wp admin.
Documentation
Configure what post types you want to have translatable:
add_filter('ahw_multilang_post_types', function($post_types) {
return [
'post',
'page',
'product'
];
});
Configure what taxonomies you want to have translatable:
add_filter('ahw_multilang_taxonomies', function($post_types) {
return [
'category',
'post_tag',
'country'
];
});
Configure what ACF field names that are posts that you want to have translatable:
add_filter('ahw_multilang_post_field_names', function($field_names) {
return [
'related_post'
];
});
NOTE: The ahw_multilang_post_field_names only works with acf fields with type post_object and return_format id.
Releases
8 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.