HEX
Server: Apache
System: Linux sxb1plmcpnl510113.prod.sxb1.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: acnbijigo78q (10488831)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/hostinger-easy-onboarding/includes/Cli.php
<?php

namespace Hostinger\EasyOnboarding;

use WP_CLI;
use Hostinger\EasyOnboarding\Cli\Commands\OnboardingStatus;

defined( 'ABSPATH' ) || exit;

class Cli {
    /**
     * Load required files and hooks to make the CLI work.
     */
    public function __construct() {
        $this->hooks();
    }

    /**
     * Sets up and hooks WP CLI to our CLI code.
     *
     * @return void
     */
    private function hooks(): void {
        if ( class_exists( '\WP_CLI' ) && class_exists( OnboardingStatus::class ) ) {
            WP_CLI::add_hook(
                'after_wp_load',
                array(
                    OnboardingStatus::class,
                    'define_command',
                )
            );
        }
    }
}