PluginProbe
Hostinger Tools / 2.0.0
Hostinger Tools v2.0.0
3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 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 All 108 releases
hostinger / includes / class-hostinger-cli.php

class-hostinger-cli.php in Hostinger Tools 2.0.0, at includes/class-hostinger-cli.php

27 lines 538 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4
5 class Hostinger_CLI {
6 /**
7 * Load required files and hooks to make the CLI work.
8 */
9 public function __construct() {
10 $this->includes();
11 $this->hooks();
12 }
13
14 public function includes(): void {
15 require_once HOSTINGER_ABSPATH . 'includes/cli/class-hostinger-maintenance-command.php';
16 }
17
18 /**
19 * Sets up and hooks WP CLI to our CLI code.
20 */
21 private function hooks(): void {
22 WP_CLI::add_hook( 'after_wp_load', 'Hostinger_Maintenance_Command::define_command' );
23 }
24 }
25
26 new Hostinger_CLI();
27