-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-leadgen-pro.php
77 lines (52 loc) · 2.04 KB
/
wp-leadgen-pro.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
<?php
/**
* Plugin Name: WP Leadgen Pro
* Description: Plugin to integration with wp leadgen pro platform.
* Version: 1.0.12
* Author: WP Leadgen Pro
* Author URI: https://wpleadgen.pro
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: leadgenpro
*/
if (!defined('ABSPATH')) {
exit;
}
if (!class_exists('LGP_Updater')) {
include_once (plugin_dir_path(__FILE__) . 'updater.php');
}
$updater = new LGP_Updater(__FILE__);
$updater->set_username('jagdish1o1');
$updater->set_repository('wp-leadgen-pro-plugin');
$updater->initialize();
include_once plugin_dir_path(__FILE__) . 'includes/class-listings-cpt.php';
include_once plugin_dir_path(__FILE__) . 'includes/class-services-cpt.php';
include_once plugin_dir_path(__FILE__) . 'includes/class-states-tax.php';
include_once plugin_dir_path(__FILE__) . 'includes/class-settings.php';
include_once plugin_dir_path(__FILE__) . 'includes/class-lgp-shortcodes.php';
include_once plugin_dir_path(__FILE__) . 'includes/modifier/rankmath.php';
include_once plugin_dir_path(__FILE__) . 'activate.php';
include_once plugin_dir_path(__FILE__) . 'deactivate.php';
register_activation_hook(__FILE__, 'leadgenpro_plugin_activate');
register_deactivation_hook(__FILE__, 'leadgenpro_plugin_deactivate');
function leadgenpro_init()
{
if (!class_exists('ACF')) {
$acfVersion = 'v6.3.5';
include_once plugin_dir_path(__FILE__) . 'includes/acf-' . $acfVersion . '/acf.php';
$statesTax = new LGP_StateTax();
$statesTax->register();
$listings = new LGP_ListingsCPT();
$listings->register();
$services = new LGP_ServicesCPT();
$services->register();
$settings = new LGP_SettingsPage();
$settings->register();
$shortcodes = new LGP_Shortcodes();
$shortcodes->register();
$modifier = new LGP_RankMath_Modifier();
$modifier->register();
add_filter('acf/settings/show_admin', '__return_false');
}
}
add_action('plugins_loaded', 'leadgenpro_init');