wcm/wp-translation-installer-plugin

Custom Composer installer to install WordPress plugin and theme translation files to custom paths.

dev-master / 1.x-dev 2016-08-14 00:18 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:09:24 UTC


README

Custom Composer installer for WordPress theme and plugin translation files.

Installation

The package is hosted on Packagist and receives auto-updates. In the CLI, you can install by calling:

composer require wcm/wp-translation-installer-plugin

Loading translation files in themes or plugins

The best thing you - as developer - can do, is to use the provided WP API functions without a path to a subfolder in your theme. This way, the fallback location at wp-content/languages/{name} will automatically be used by WP Core.