| 1 |
<?php |
| 2 |
defined("ABSPATH") || exit; |
| 3 |
|
| 4 |
if ( ! class_exists( 'MWTSA_Admin' ) ) { |
| 5 |
|
| 6 |
class MWTSA_Admin { |
| 7 |
|
| 8 |
public function __construct() { |
| 9 |
$this->includes(); |
| 10 |
$this->add_actions_and_filters(); |
| 11 |
} |
| 12 |
|
| 13 |
private function includes() { |
| 14 |
include_once( 'includes/class.settings.php' ); |
| 15 |
include_once( 'includes/class.dashboard.php' ); |
| 16 |
include_once( 'includes/class.charts.php' ); |
| 17 |
include_once( 'includes/class.stats.php' ); |
| 18 |
include_once( 'includes/class.export-csv.php' ); |
| 19 |
} |
| 20 |
|
| 21 |
public function add_actions_and_filters() { |
| 22 |
add_action( 'wp_dashboard_setup', array( 'MWTSA_Dashboard', 'init_action' ) ); |
| 23 |
|
| 24 |
add_filter("plugin_row_meta", array( 'MWTSA_Dashboard', 'add_plugin_meta_links' ), 10, 2); |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
} |
| 29 |
|
| 30 |
return new MWTSA_Admin(); |