PluginProbe
DecaLog / 3.4.0
DecaLog v3.4.0
3.0.2 3.1.0 3.10.0 3.2.0 3.3.0 3.4.0 3.4.1 3.5.0 3.5.1 3.6.0 3.6.1 3.6.2 3.6.3 3.7.0 3.7.1 3.8.0 3.9.0 3.9.1 4.0.0 4.1.0 4.2.0 4.3.0 4.3.1 4.4.0 4.5.0 All 75 releases
decalog / includes / plugin / class-initializer.php

class-initializer.php in DecaLog 3.4.0, at includes/plugin/class-initializer.php

57 lines 1019 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin initialization handling.
4 *
5 * @package Plugin
6 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
7 * @since 1.0.0
8 */
9
10 namespace Decalog\Plugin;
11
12 /**
13 * Fired after 'init' hook.
14 *
15 * This class defines all code necessary to run during the plugin's initialization.
16 *
17 * @package Plugin
18 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
19 * @since 1.0.0
20 */
21 class Initializer {
22
23 /**
24 * Initialize the class and set its properties.
25 *
26 * @since 1.0.0
27 */
28 public function __construct() {
29
30 }
31
32 /**
33 * Initialize the plugin.
34 *
35 * @since 1.0.0
36 */
37 public function initialize() {
38 \Decalog\System\Cache::init();
39 \Decalog\System\Sitehealth::init();
40 \Decalog\System\APCu::init();
41 //if ( 'en_US' !== determine_locale() ) {
42 unload_textdomain( DECALOG_SLUG );
43 load_plugin_textdomain( DECALOG_SLUG );
44 //}
45 }
46
47 /**
48 * Initialize the plugin.
49 *
50 * @since 1.0.0
51 */
52 public function late_initialize() {
53 require_once DECALOG_PLUGIN_DIR . 'perfopsone/init.php';
54 }
55
56 }
57