Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




load_muplugin_textdomain [ WordPress Function ]

load_muplugin_textdomain ( $domain, $mu_plugin_rel_path = '' )
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 at:



Load the translated strings for a plugin residing in the mu-plugins dir.

Source


<?php
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$domaintrailingslashit$path ) . "$domain-$locale.mo" );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics