Advertisements

load_muplugin_textdomain

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

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: