PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 4.6.0.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v4.6.0.1
6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 5.2.2 5.3 All 153 releases
mainwp / includes / class-mainwp-includes.php

class-mainwp-includes.php in MainWP Dashboard: Self-hosted WordPress Management for Agencies 4.6.0.1, at includes/class-mainwp-includes.php

50 lines 912 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Includes files.
4 *
5 * @package MainWP\Dashboard
6 * @version 4.5.1
7 */
8
9 namespace MainWP\Dashboard;
10
11 defined( 'ABSPATH' ) || exit;
12
13 /**
14 * Logs class.
15 */
16 class MainWP_Includes {
17
18 /**
19 * Public static variable to hold the plugin dir.
20 *
21 * @static
22 *
23 * @var string Default MainWP dashboard plugin dir.
24 */
25 public static $plugin_basedir = MAINWP_PLUGIN_DIR;
26 /**
27 * Load required files and hooks to make the CLI work.
28 */
29 public function __construct() {
30 $this->includes();
31 }
32
33
34 /**
35 * Check if enable log module.
36 */
37 public static function is_enable_log_module() {
38 return defined( 'MAINWP_MODULE_LOG_ENABLED' ) && MAINWP_MODULE_LOG_ENABLED ? true : false;
39 }
40
41 /**
42 * Load files.
43 */
44 private function includes() {
45 if ( file_exists( self::$plugin_basedir . '/modules/class-module-log.php' ) ) {
46 require_once self::$plugin_basedir . '/modules/class-module-log.php';
47 }
48 }
49 }
50