-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathultimate-dashboard.php
More file actions
57 lines (49 loc) · 1.88 KB
/
Copy pathultimate-dashboard.php
File metadata and controls
57 lines (49 loc) · 1.88 KB
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
56
57
<?php
/**
* Plugin Name: Ultimate Dashboard
* Plugin URI: https://ultimatedashboard.io/
* Description: Create a custom Dashboard and give the WordPress admin area a more meaningful use.
* Version: 3.8.17
* Author: David Vongries
* Author URI: https://davidvongries.com/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: ultimate-dashboard
*
* @package Ultimate_Dashboard
*/
defined( 'ABSPATH' ) || die( "Can't access directly" );
// Plugin constants.
define( 'ULTIMATE_DASHBOARD_PLUGIN_DIR', rtrim( plugin_dir_path( __FILE__ ), '/' ) );
define( 'ULTIMATE_DASHBOARD_PLUGIN_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
define( 'ULTIMATE_DASHBOARD_PLUGIN_VERSION', '3.8.17' );
define( 'ULTIMATE_DASHBOARD_PLUGIN_FILE', plugin_basename( __FILE__ ) );
// Admin menu specific support.
require_once __DIR__ . '/modules/admin-menu/inc/not-doing-ajax.php';
udb_admin_menu_not_doing_ajax();
// Helper classes.
require __DIR__ . '/helpers/class-screen-helper.php';
require __DIR__ . '/helpers/class-color-helper.php';
require __DIR__ . '/helpers/class-widget-helper.php';
require __DIR__ . '/helpers/class-content-helper.php';
require __DIR__ . '/helpers/class-user-helper.php';
require __DIR__ . '/helpers/class-array-helper.php';
require __DIR__ . '/helpers/class-admin-bar-helper.php';
// Base module.
require __DIR__ . '/modules/base/class-base-module.php';
require __DIR__ . '/modules/base/class-base-output.php';
// Core classes.
require __DIR__ . '/class-backwards-compatibility.php';
require __DIR__ . '/class-vars.php';
require __DIR__ . '/class-setup.php';
/**
* Check whether Ultimate Dashboard Pro is active.
* This function can be called anywhere after "plugins_loaded" hook.
*
* @return bool
*/
function udb_is_pro_active() {
return defined( 'ULTIMATE_DASHBOARD_PRO_PLUGIN_VERSION' );
}
Udb\Backwards_Compatibility::init();
Udb\Setup::init();