PluginProbe
YayMail – WooCommerce Email Customizer / 2.1.4
YayMail – WooCommerce Email Customizer v2.1.4
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
yaymail / includes / I18n.php

I18n.php in YayMail – WooCommerce Email Customizer 2.1.4, at includes/I18n.php

35 lines 591 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace YayMail;
3
4 defined( 'ABSPATH' ) || exit;
5 /**
6 * I18n Logic
7 */
8 class I18n {
9
10 protected static $instance = null;
11
12 public static function getInstance() {
13 if ( null == self::$instance ) {
14 self::$instance = new self();
15 self::$instance->doHooks();
16 }
17
18 return self::$instance;
19 }
20
21 private function doHooks() {
22 add_action( 'plugins_loaded', array( $this, 'loadPluginTextdomain' ) );
23 }
24
25 private function __construct() {}
26
27 public function loadPluginTextdomain() {
28 load_plugin_textdomain(
29 'yaymail',
30 false,
31 YAYMAIL_PLUGIN_URL . 'i18n/languages/'
32 );
33 }
34 }
35