Tribe__Events__Filterbar__View::loadTextDomain()
Load the plugin’s textdomain.
Return
(void)
Source
File: src/Tribe/View.php
public function loadTextDomain() {
$mopath = $this->pluginDir . 'lang/';
$domain = 'tribe-events-filter-view';
// If we don't have Common classes load the old fashioned way
if ( ! class_exists( 'Tribe__Main' ) ) {
load_plugin_textdomain( $domain, false, $mopath );
} else {
// This will load `wp-content/languages/plugins` files first
Tribe__Main::instance()->load_text_domain( $domain, $mopath );
}
}
Changelog
| Version | Description |
|---|---|
| 3.4 | Introduced. |