-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmain.php
More file actions
25 lines (22 loc) · 837 Bytes
/
Copy pathmain.php
File metadata and controls
25 lines (22 loc) · 837 Bytes
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
<?php
/*
Plugin Name: WR MegaMenu
Plugin URI: http://woorockets.com
Description: WR MegaMenu
Version: 1.1.3
Author: WooRockets
Author URI: http://woorockets.com
License: GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
*/
// Load class auto-loader
require_once dirname( __FILE__ ) . '/includes/loader.php';
// Include constant definition file
include_once dirname( __FILE__ ) . '/defines.php';
// Activate WR MegaMenu plugin
register_activation_hook( WR_MEGAMENU_MAIN_FILE, array( 'WR_Megamenu_Plugin', 'on_activation' ) );
// Redirect after plugin activation
add_action( 'admin_init', array( 'WR_Megamenu_Plugin', 'do_activation_redirect' ) );
// Register WR MegaMenu Plugin initialization
add_action( 'wr_megamenu_init', array( 'WR_Megamenu_Plugin', 'init' ) );
// Initialize WR Library
WR_Megamenu_Init_Plugin::hook();