| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
if( ! class_exists( 'MywpDeveloperAbstractModule' ) ) { |
| 8 |
return false; |
| 9 |
} |
| 10 |
|
| 11 |
if ( ! class_exists( 'MywpDeveloperModuleMywpInfo' ) ) : |
| 12 |
|
| 13 |
final class MywpDeveloperModuleMywpInfo extends MywpDeveloperAbstractModule { |
| 14 |
|
| 15 |
static protected $id = 'mywp_info'; |
| 16 |
|
| 17 |
static protected $priority = 110; |
| 18 |
|
| 19 |
public static function mywp_debug_renders( $debug_renders ) { |
| 20 |
|
| 21 |
$debug_renders[ self::$id ] = array( |
| 22 |
'debug_type' => 'mywp', |
| 23 |
'title' => MYWP_NAME, |
| 24 |
); |
| 25 |
|
| 26 |
return $debug_renders; |
| 27 |
|
| 28 |
} |
| 29 |
|
| 30 |
protected static function get_debug_lists() { |
| 31 |
|
| 32 |
$debug_lists = array( |
| 33 |
'manage_capability' => MywpApi::get_manager_capability(), |
| 34 |
'network_manage_capability' => MywpApi::get_network_manager_capability(), |
| 35 |
'is_manager' => MywpApi::is_manager(), |
| 36 |
'is_network_manager' => MywpApi::is_network_manager(), |
| 37 |
'MYWP_VERSION' => MYWP_VERSION, |
| 38 |
'MYWP_PLUGIN_BASENAME' => MYWP_PLUGIN_BASENAME, |
| 39 |
'MYWP_PLUGIN_DIRNAME' => MYWP_PLUGIN_DIRNAME, |
| 40 |
'MYWP_PLUGIN_PATH' => MYWP_PLUGIN_PATH, |
| 41 |
'MYWP_PLUGIN_URL' => esc_url( MYWP_PLUGIN_URL ), |
| 42 |
'MYWP_REQUIRED_WP_VERSION' => MYWP_REQUIRED_WP_VERSION, |
| 43 |
); |
| 44 |
|
| 45 |
return $debug_lists; |
| 46 |
|
| 47 |
} |
| 48 |
|
| 49 |
} |
| 50 |
|
| 51 |
MywpDeveloperModuleMywpInfo::init(); |
| 52 |
|
| 53 |
endif; |
| 54 |
|