-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcgc-love-it.php
executable file
·39 lines (31 loc) · 1.19 KB
/
cgc-love-it.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
<?php
/**
*
* @package CGC Love It 2.0
* @author Nick Haskins <nick@cgcookie.com>
* @license GPL-2.0+
* @link http://example.com
* @copyright 2014 Your Name or Company Name
*
* Plugin Name: CGC Love It
* Plugin URI: http://cgcookie.com
* Description: Creates a social following/follower system
* Version: 5.2.1
* GitHub Plugin URI: https://github.com/cgcookie/cgc-loveit
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Set some constants
define('CGC_LOVEIT_VERSION', '5.2.1');
define('CGC_LOVEIT_DIR', plugin_dir_path( __FILE__ ));
define('CGC_LOVEIT_URL', plugins_url( '', __FILE__ ));
require_once( plugin_dir_path( __FILE__ ) . 'public/class-cgc-love-it.php' );
register_activation_hook( __FILE__, array( 'CGC_Loveit', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'CGC_Loveit', 'deactivate' ) );
add_action( 'plugins_loaded', array( 'CGC_Loveit', 'get_instance' ) );
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-cgc-love-it-admin.php' );
add_action( 'plugins_loaded', array( 'CGC_Loveit_Admin', 'get_instance' ) );
}