-
Notifications
You must be signed in to change notification settings - Fork 1
/
user-registration-cf7.php
84 lines (69 loc) · 2.61 KB
/
user-registration-cf7.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/**
* Plugin Name: User Registration Using Contact Form 7
* Plugin URL: https://wordpress.org/plugin-url/
* Description: User Registration Using Contact Form 7 plugin provide the feature to register the user to the website using Contact Form 7.
* Version: 2.1
* Author: ZealousWeb
* Author URI: https://www.zealousweb.com/
* Developer: The ZealousWeb Team
* Developer E-Mail: [email protected]
* Text Domain: zeal-user-reg-cf7
* Domain Path: /languages
*
* Copyright: © 2009-2020 ZealousWeb.
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
/**
* Basic plugin definitions
*
* @package User Registration Using Contact Form 7
* @since 1.0
*/
if ( !defined( 'ZURCF7_VERSION' ) ) {
define( 'ZURCF7_VERSION', '2.1' ); // Version of plugin
}
if ( !defined( 'ZURCF7_FILE' ) ) {
define( 'ZURCF7_FILE', __FILE__ ); // Plugin File
}
if ( !defined( 'ZURCF7_DIR' ) ) {
define( 'ZURCF7_DIR', dirname( __FILE__ ) ); // Plugin dir
}
if ( !defined( 'ZURCF7_URL' ) ) {
define( 'ZURCF7_URL', plugin_dir_url( __FILE__ ) ); // Plugin url
}
if ( !defined( 'ZURCF7_PLUGIN_BASENAME' ) ) {
define( 'ZURCF7_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); // Plugin base name
}
if ( !defined( 'ZURCF7_META_PREFIX' ) ) {
define( 'ZURCF7_META_PREFIX', 'zurcf7_' ); // Plugin metabox prefix
}
if ( !defined( 'ZURCF7_PREFIX' ) ) {
define( 'ZURCF7_PREFIX', 'zurcf7' ); // Plugin prefix
}
if( !defined( 'ZURCF7_POST_TYPE' ) ) {
define( 'ZURCF7_POST_TYPE', 'zuserreg_data' ); // Plugin registered post type name
}
/**
* Initialize the main class
*/
if ( !function_exists( 'ZURCF7' ) ) {
if ( is_admin() ) {
require_once( ZURCF7_DIR . '/inc/admin/class.' . ZURCF7_PREFIX . '.admin.php' );
require_once( ZURCF7_DIR . '/inc/admin/class.' . ZURCF7_PREFIX . '.admin.action.php' );
require_once( ZURCF7_DIR . '/inc/admin/class.' . ZURCF7_PREFIX . '.admin.filter.php' );
} else {
require_once( ZURCF7_DIR . '/inc/front/class.' . ZURCF7_PREFIX . '.front.php' );
require_once( ZURCF7_DIR . '/inc/front/class.' . ZURCF7_PREFIX . '.front.action.php' );
require_once( ZURCF7_DIR . '/inc/front/class.' . ZURCF7_PREFIX . '.front.filter.php' );
}
// ZURCF7 Global ACF Function
require_once( ZURCF7_DIR . '/inc/admin/' . ZURCF7_PREFIX . '.function.custom.php' );
require_once( ZURCF7_DIR . '/inc/lib/class.' . ZURCF7_PREFIX . '.lib.php' );
require_once( ZURCF7_DIR . '/inc/lib/class.' . ZURCF7_PREFIX . '.fb.signup.php' );
//Initialize all the things.
require_once( ZURCF7_DIR . '/inc/class.' . ZURCF7_PREFIX . '.php' );
}