Tribe__Events__Community__Tickets__Main::load_text_domain()

Load this plugin’s text domain.


Source #

File: src/Tribe/Main.php

	public function load_text_domain() {
		// Load text domain.
		$mopath = $this->plugin_dir . 'lang/';
		$domain = 'tribe-events-community-tickets';

		// 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 );
		}
	}

Top ↑

Changelog #

Changelog
Version Description
4.7.4 Introduced.