Polylang - Get all translations
Get all translations for the current language as a single key-value object.
by k1sul1 · github.com/k1sul1/polylang-get-all-translations · website
★ 3stars
71composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/k1sul1/polylang-get-all-translations/archive/refs/heads/master.zipAlso on Packagist as k1sul1/polylang-get-all-translations:
composer require k1sul1/polylang-get-all-translationsFrom the readme
Polylang - Get all translations
Get all translations for the current language as a single key-value object. Calls are cached for performance.
You can use the object in wplocalizescript() to print all string translations to the client as a JavaScript object.
plgetalltranslations() gives you a cached array of keypairs.
There's a few filters that you can use to configure the plugin.
Requirements
- Polylang
- PHP 5.4+
Installation
Install the plugin via Composer
Activate the plugin
Usage
Read the full README on GitHub →