affiliates-users.php
1.47 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
<?php
/**
* affiliates-users.php
*
* Copyright (c) www.itthinx.com
*
* This code is provided subject to the license granted.
* Unauthorized use and distribution is prohibited.
* See COPYRIGHT.txt and LICENSE.txt
*
* This code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* This header and all notices must be kept intact.
*
* @author kento
* @package affiliates-users
* @since affiliates-users 1.0.0
*
* Plugin Name: Affiliates Users
* Plugin URI: http://www.itthinx.com/plugins/affiliates-users
* Description: New users become affiliates automatically.
* Version: 1.3.1
* Author: itthinx
* Author URI: http://www.itthinx.com
*/
define( 'AFFILIATES_USERS_PLUGIN_VERSION', '1.3.0' );
define( 'AFFILIATES_USERS_PLUGIN_DOMAIN', 'affiliates-users' );
define( 'AFFILIATES_USERS_PLUGIN_FILE', __FILE__ );
define( 'AFFILIATES_USERS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'AFFILIATES_USERS_PLUGIN_DIR', WP_PLUGIN_DIR . '/affiliates-users' );
define( 'AFFILIATES_USERS_ADMIN_LIB', AFFILIATES_USERS_PLUGIN_DIR . '/admin' );
/**
* Plugin boot.
*/
class Affiliates_Users_Plugin {
public static function init() {
include_once 'includes/class-affiliates-users.php';
include_once 'includes/class-affiliates-users-update.php';
if ( is_admin() ) {
include_once 'admin/class-affiliates-users-admin.php';
}
}
}
Affiliates_Users_Plugin::init();