forked from wp-plugins/event-calendar-wd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecwd.php
32 lines (25 loc) · 1.08 KB
/
ecwd.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
<?php
/**
* Plugin Name: Event Calendar WD
* Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
* Description: Event Calendar WD is an easy event management and planning tool with advanced features.
* Version: 1.0.24
* Author: WebDorado
* Author URI: http://web-dorado.com
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
require_once( 'ecwd_class.php' );
if( ! defined( 'ECWD_MAIN_FILE' ) ) {
define( 'ECWD_MAIN_FILE', plugin_basename(__FILE__));
}if( ! defined( 'ECWD_DIR' ) ) {
define( 'ECWD_DIR', dirname(__FILE__));
}if(! defined( 'ECWD_URL' ) ){
define ('ECWD_URL',plugins_url(plugin_basename(dirname(__FILE__))));
}
add_action( 'plugins_loaded', array( 'ECWD', 'get_instance' ) );
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
require_once( 'ecwd_admin_class.php' );
register_activation_hook( __FILE__, array( 'ECWD_Admin', 'activate' ) );
register_uninstall_hook(__FILE__, array('ECWD_Admin', 'uninstall'));
add_action( 'plugins_loaded', array( 'ECWD_Admin', 'get_instance' ) );
}