$rootSlug
$rootSlug :
Base i18n management for backend and frontend for a package.
For non-utils packages you need to extend from this class and properly fill the constructor.
override_load_textdomain(boolean $plugin_override,string $domain,string $mofile)
Never load `.mo` files from `wp-content/plugins/languages` as we do manage all our translations ourself.
TODO: make this configurable per plugin?
This filter is directly implemented in override_load_textdomain
but keep for history.
boolean | $plugin_override | |
string | $domain | |
string | $mofile |
instance(string $rootSlug,string $packageDir): \MatthiasWeb\Utils\PackageLocalization
New instance.
string | $rootSlug | |
string | $packageDir |