PluginProbe ʕ •ᴥ•ʔ
Hostinger Tools / 1.9.6
Hostinger Tools v1.9.6
3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.4 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 3.0.0 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.18 3.0.19 3.0.2 3.0.20 3.0.21 3.0.22 3.0.23 3.0.24 3.0.25 3.0.26 3.0.27 3.0.28 3.0.29 3.0.3 3.0.30 3.0.31 3.0.32 3.0.33 3.0.34 3.0.35 3.0.36 3.0.37 3.0.38 3.0.39 3.0.4 3.0.40 3.0.41 3.0.42 3.0.43 3.0.44 3.0.45 3.0.46 3.0.47 3.0.48 3.0.49 3.0.5 3.0.50 3.0.51 3.0.52 3.0.53 3.0.54 3.0.55 3.0.56 3.0.57 3.0.58 3.0.59 3.0.6 3.0.60 3.0.61 3.0.62 3.0.65 3.0.7 3.0.8 3.0.9 trunk 1.8.0
hostinger / hostinger.php
hostinger Last commit date
assets 2 years ago includes 2 years ago languages 2 years ago src 2 years ago hostinger.php 2 years ago index.php 2 years ago package-lock.json 2 years ago package.json 2 years ago readme.txt 2 years ago uninstall.php 2 years ago webpack.mix.js 2 years ago
hostinger.php
78 lines
1 <?php
2 /**
3 * Plugin Name: Hostinger
4 * Plugin URI: https://hostinger.com
5 * Description: Hostinger WordPress plugin.
6 * Version: 1.9.6
7 * Requires at least: 5.6
8 * Requires PHP: 7.4
9 * Author: Hostinger
10 * License: GPL v3
11 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
12 * Author URI: https://www.hostinger.com
13 * Text Domain: hostinger
14 * Domain Path: /languages
15 *
16 * @package Hostinger
17 */
18
19 defined( 'ABSPATH' ) || exit;
20
21 if ( ! defined( 'HOSTINGER_VERSION' ) ) {
22 define( 'HOSTINGER_VERSION', '1.9.6' );
23 }
24
25 if ( ! defined( 'HOSTINGER_ABSPATH' ) ) {
26 define( 'HOSTINGER_ABSPATH', plugin_dir_path( __FILE__ ) );
27 }
28
29 if ( ! defined( 'HOSTINGER_PLUGIN_FILE' ) ) {
30 define( 'HOSTINGER_PLUGIN_FILE', __FILE__ );
31 }
32
33 if ( ! defined( 'HOSTINGER_PLUGIN_URL' ) ) {
34 define( 'HOSTINGER_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
35 }
36
37 if ( ! defined( 'HOSTINGER_ASSETS_URL' ) ) {
38 define( 'HOSTINGER_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets' );
39 }
40
41 if ( ! defined( 'HOSTINGER_WP_CONFIG_PATH' ) ) {
42 define( 'HOSTINGER_WP_CONFIG_PATH', ABSPATH . '.private/config.json' );
43 }
44
45 if ( ! defined( 'HOSTINGER_WP_TOKEN' ) ) {
46 $hostinger_dir_parts = explode( '/', __DIR__ );
47 $hostinger_server_root_path = '/' . $hostinger_dir_parts[1] . '/' . $hostinger_dir_parts[2];
48 define( 'HOSTINGER_WP_TOKEN', $hostinger_server_root_path . '/.api_token' );
49 }
50
51 if ( ! defined( 'HOSTINGER_REST_URI' ) ) {
52 define( 'HOSTINGER_REST_URI', 'https://rest-hosting.hostinger.com' );
53 }
54
55 /**
56 * @return void
57 */
58 function hostinger_activate(): void {
59 require_once HOSTINGER_ABSPATH . 'includes/class-hostinger-activator.php';
60 Hostinger_Activator::activate();
61 }
62
63 /**
64 * @return void
65 */
66 function hostinger_deactivate(): void {
67 require_once HOSTINGER_ABSPATH . 'includes/class-hostinger-deactivator.php';
68 Hostinger_Deactivator::deactivate();
69 }
70
71 register_activation_hook( __FILE__, 'hostinger_activate' );
72 register_deactivation_hook( __FILE__, 'hostinger_deactivate' );
73
74 require_once HOSTINGER_ABSPATH . 'includes/class-hostinger.php';
75
76 $hostinger = new Hostinger();
77 $hostinger->run();
78