PluginProbe
IP Locator / 3.3.0
IP Locator v3.3.0
2.2.0 3.0.0 3.1.0 3.1.1 3.1.2 3.10.0 3.10.1 3.10.2 3.10.3 3.11.0 3.2.0 3.3.0 3.4.0 3.4.1 3.5.0 3.6.0 3.7.0 3.7.1 3.8.0 3.9.0 4.0.0 4.1.0 4.2.0 4.2.1 4.3.0 All 36 releases
ip-locator / ip-locator.php

ip-locator.php in IP Locator 3.3.0, at ip-locator.php

88 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main plugin file.
4 *
5 * @package Bootstrap
6 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
7 * @since 1.0.0
8 *
9 * @wordpress-plugin
10 * Plugin Name: IP Locator
11 * Plugin URI: https://perfops.one/ip-locator
12 * Description: Country and language IP-based detection.
13 * Version: 3.3.0
14 * Requires at least: 5.2
15 * Requires PHP: 7.2
16 * Author: Pierre Lannoy / PerfOps One
17 * Author URI: https://perfops.one
18 * License: GPLv3
19 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
20 * Text Domain: ip-locator
21 * Domain Path: /languages
22 * Network: true
23 */
24
25 // If this file is called directly, abort.
26 if ( ! defined( 'WPINC' ) ) {
27 die;
28 }
29
30 require_once __DIR__ . '/init.php';
31 require_once __DIR__ . '/functions.php';
32 require_once __DIR__ . '/includes/system/class-option.php';
33 require_once __DIR__ . '/includes/system/class-environment.php';
34 require_once __DIR__ . '/autoload.php';
35 require_once __DIR__ . '/includes/libraries/class-libraries.php';
36 require_once __DIR__ . '/includes/libraries/autoload.php';
37 require_once __DIR__ . '/includes/features/class-schema.php';
38 require_once __DIR__ . '/includes/features/class-wpcli.php';
39
40 // Automattic action scheduler
41 add_filter( 'action_scheduler_migration_dependencies_met', '__return_false' );
42 require_once __DIR__ . '/includes/libraries/action-scheduler/action-scheduler.php';
43
44
45 /**
46 * The code that runs during plugin activation.
47 *
48 * @since 1.0.0
49 */
50 function iplocator_activate() {
51 IPLocator\Plugin\Activator::activate();
52 }
53
54 /**
55 * The code that runs during plugin deactivation.
56 *
57 * @since 1.0.0
58 */
59 function iplocator_deactivate() {
60 IPLocator\Plugin\Deactivator::deactivate();
61 }
62
63 /**
64 * The code that runs during plugin uninstallation.
65 *
66 * @since 1.0.0
67 */
68 function iplocator_uninstall() {
69 IPLocator\Plugin\Uninstaller::uninstall();
70 }
71
72 /**
73 * Begins execution of the plugin.
74 *
75 * @since 1.0.0
76 */
77 function iplocator_run() {
78 \DecaLog\Engine::initPlugin( IPLOCATOR_SLUG, IPLOCATOR_PRODUCT_NAME, IPLOCATOR_VERSION, \IPLocator\Plugin\Core::get_base64_logo() );
79 \IPLocator\System\Cache::init();
80 $plugin = new IPLocator\Plugin\Core();
81 $plugin->run();
82 }
83
84 register_activation_hook( __FILE__, 'iplocator_activate' );
85 register_deactivation_hook( __FILE__, 'iplocator_deactivate' );
86 register_uninstall_hook( __FILE__, 'iplocator_uninstall' );
87 iplocator_run();
88