clearMoCacheDir()
clearMoCacheDir(string $slug)
Clear the MO cache directory for a given plugin.
Parameters
string | $slug |
Base i18n management for backend and frontend.
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 |
getPackageInfo(string $type): array<mixed,string>
Get the directory where the languages folder exists.
The returned string array should look like this: [0] = Full path to the "languages" folder [1] = Used textdomain [2]? = Use different prefix domain in filename
string | $type |