Definition:
function load_muplugin_textdomain( $domain, $mu_plugin_rel_path = '' ) {}
Load the translated strings for a plugin residing in the mu-plugins dir.
Parameters
- string $domain: Unique identifier for retrieving translated strings
- string $mu_plugin_rel_path: Relative to WPMU_PLUGIN_DIR directory in which the MO file resides. Defaults to empty string.
Defined filters
- plugin_locale
apply_filters( 'plugin_locale', get_locale()
Source code
function load_muplugin_textdomain( $domain, $mu_plugin_rel_path = '' ) { $locale = apply_filters( 'plugin_locale', get_locale(), $domain ); $path = WPMU_PLUGIN_DIR . '/' . ltrim( $mu_plugin_rel_path, '/' ); load_textdomain( $domain, trailingslashit( $path ) . "$domain-$locale.mo" ); }
2285
No comments yet... Be the first to leave a reply!