PluginProbe
Sessions / 2.4.0
Sessions v2.4.0
2.1.0 2.10.0 2.11.0 2.12.0 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.2.0 2.3.0 2.3.1 2.4.0 2.4.1 2.5.0 2.6.0 2.6.1 2.6.2 2.7.0 2.8.0 2.9.0 2.9.1 3.0.0 3.1.0 3.1.1 All 39 releases
sessions / includes / plugin / class-initializer.php

class-initializer.php in Sessions 2.4.0, at includes/plugin/class-initializer.php

60 lines 1.2 KB
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 POSessions\Plugin;
11
12 /**
13 * Fired after 'plugins_loaded' 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 \POSessions\System\Cache::init();
39 \POSessions\System\Sitehealth::init();
40 \POSessions\System\APCu::init();
41 \POSessions\Plugin\Feature\UserAdministration::init();
42 \POSessions\Plugin\Feature\ZooKeeper::init();
43 //if ( 'en_US' !== determine_locale() ) {
44 unload_textdomain( POSE_SLUG );
45 load_plugin_textdomain( POSE_SLUG );
46 //}
47 }
48
49 /**
50 * Initialize the plugin.
51 *
52 * @since 1.0.0
53 */
54 public function late_initialize() {
55 \POSessions\Plugin\Feature\Capture::late_init();
56 require_once POSE_PLUGIN_DIR . 'perfopsone/init.php';
57 }
58
59 }
60