-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmadnify.php
More file actions
executable file
·46 lines (32 loc) · 1.03 KB
/
madnify.php
File metadata and controls
executable file
·46 lines (32 loc) · 1.03 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
<?php
/*
Plugin Name: Madnify
Plugin URI: http://www.madwire.com/
Description: Proprietary development plugin by Madwire. Instantly see custom functionality on your site and what it does by viewing the extension dashboard.
Version: 3.1.1
Author: Madwire
Author URI: http://www.madwire.com/
*/
define('MADNIFY_URL', plugin_dir_url(__FILE__));
define('MADNIFY_PATH', plugin_dir_path(__FILE__));
define('MADNIFY_VERSION', '3.1.1');
final class Madnify {
static function settings_page() {
$plugin = plugin_basename(__FILE__);
add_filter("plugin_action_links_$plugin", function($links) {
$settings_link = '<a href="'.admin_url('admin.php?page=madnify-options').'">'.__('Extensions', 'madnify').'</a>';
array_push($links, $settings_link);
return $links;
});
}
public static function init() {
do_action('madnify_before_init');
self::settings_page();
self::classes_loader();
do_action('madnify_after_init');
}
static function classes_loader() {
require_once(MADNIFY_PATH.'core/classes-loader.php');
}
}
Madnify::init();