HEX
Server: Apache
System: Linux efa57bbe-abb1-400d-2985-3b056fbc2701.secureserver.net 6.1.147-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 24 12:33:32 EDT 2025 x86_64
User: root (0)
PHP: 8.0.30.4
Disabled: NONE
Upload Files
File: //var/www/wp-content/mu-plugins/gd-system-plugin/includes/cli/class-hmt.php
<?php

namespace WPaaS\CLI;

use \WP_CLI;
use \WP_CLI_Command;
use \WPaaS\API;

if ( ! defined( 'ABSPATH' ) ) {

	exit;

}

final class HMT extends WP_CLI_Command {

	/**
	 * Register HMT backups.
	 *
	 *
	 */
	public function register( array $args, array $assoc_args ) {

		if ( ! function_exists( 'mwp_get_potential_key' ) ) {


			WP_CLI::error( 'The function mwp_get_potential_key does not exist.', false );

			return;
		}
		$potential_key = mwp_get_potential_key();

		$api    = new API();
		$result = $api->hmt_register( $potential_key );

		if ( empty( $result ) ) {
			WP_CLI::error( 'Failed to register HMT backups.', false );
		} else {
			WP_CLI::success( 'HMT backups registered successfully.', false );
		}

	}


}