PluginProbe
Hostinger Tools / 3.0.0
Hostinger Tools v3.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
← All changes | includes/Cli.php +7 -16 3.0.673.0.0 View file →
@@ -10,10 +10,10 @@
10 10 /**
11 11 * Load required files and hooks to make the CLI work.
12 12 */
13 13 public function __construct() {
14 - $this->hooks();
15 - }
14 + $this->hooks();
15 + }
16 16
17 17 /**
18 18 * Sets up and hooks WP CLI to our CLI code.
19 19 *
@@ -18,19 +18,10 @@
18 18 * Sets up and hooks WP CLI to our CLI code.
19 19 *
20 20 * @return void
21 21 */
22 - private function hooks(): void {
23 -
24 - if ( ! class_exists( '\WP_CLI' ) ) {
25 - return;
26 - }
27 -
28 - if ( class_exists( '\Hostinger\Cli\Commands\Maintenance' ) ) {
29 - WP_CLI::add_hook( 'after_wp_load', array( 'Hostinger\Cli\Commands\Maintenance', 'define_command' ) );
30 - }
31 -
32 - if ( class_exists( '\Hostinger\Cli\Commands\AI' ) ) {
33 - WP_CLI::add_hook( 'after_wp_load', array( 'Hostinger\Cli\Commands\AI', 'define_command' ) );
34 - }
35 - }
22 + private function hooks(): void {
23 + if ( class_exists( '\WP_CLI' ) ) {
24 + WP_CLI::add_hook( 'after_wp_load', array( 'Hostinger\Cli\Commands\Maintenance', 'define_command' ) );
25 + }
26 + }
36 27 }