-
Notifications
You must be signed in to change notification settings - Fork 0
/
wphelp.php
55 lines (41 loc) · 1.28 KB
/
wphelp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* Plugin Name: WP Help
* Plugin URI: https://wphelpkit.com
* Description: Your WordPress savior. Get expert assistance for WordPress, themes, or plugins – Hassle-Free.
* Version: 0.9.9
* Author: WP Help
* Author URI: https://wphelpkit.com
* Text Domain: wphelp
* Domain Path: /languages/
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Requires at least: 5.0
* Tested up to: 6.4
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
if ( ! function_exists( 'is_plugin_active' ) ) {
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
}
if ( ! class_exists( 'WPHelpKit' ) ) :
class WPHelpKit {
private static $instance ;
public function __construct() {
// Helpers
//include_once( dirname( __FILE__ ) . '/includes/helpers/helpers.php' );
// Dashboard
include_once( dirname( __FILE__ ) . '/inc/dashboard/index.php' );
}
// Ensures only one instance of WPHelpKit is loaded or can be loaded.
public static function get_instance()
{
if ( !self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
}
WPHelpKit::get_instance();
endif;