Tribe__Main::hook_load_text_domain()
Load Common’s text domain, then fire the hook for other plugins to do the same.
Make sure this fires on ‘init’, per WordPress best practices.
Return
(bool)
Source
File: src/Tribe/Main.php
public function hook_load_text_domain() {
$loaded = $this->load_text_domain(
'tribe-common',
basename( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) ) . '/common/lang/'
);
/**
* After attempting (hopefully successfully) to load Common's text domain.
*
* Load other plugin text domains on this hook, but make sure they're setup on this hook prior to 'init'.
*
* @since 4.12.0
*
* @param bool $loaded Whether or not Common's text domain was loaded.
*
* @return bool
*/
do_action( 'tribe_load_text_domains', $loaded );
return $loaded;
}
Changelog
| Version | Description |
|---|---|
| 4.12.0 | Introduced. |