HEX
Server: Apache
System: Linux vps.webnoxsoftware.com 4.18.0-553.70.1.el8_10.x86_64 #1 SMP Mon Aug 18 04:41:49 EDT 2025 x86_64
User: microfabengineer (1020)
PHP: 8.3.24
Disabled: NONE
Upload Files
File: /home/microfabengineer/public_html/wp-content/themes/Avada/includes/cli/plugins.php
<?php
/**
 * Install and Active Avada Plugins.
 *
 * @author     ThemeFusion
 * @copyright  (c) Copyright by ThemeFusion
 * @link       https://avada.com
 * @package    Avada
 * @subpackage CLI
 * @since      7.4
 *
 * @usage: wp plugin install $(wp fusion plugin url Avada-Builder) --activate --force
 */

$fusion_plugin_url_cmd = function( $args, $assoc_args ) {

	if ( empty( $args ) ) {
		WP_CLI::error( 'Plugin slug is missing.' );
	}

	$plugin_name = str_replace( '-', ' ', $args[0] );

	echo Avada()->remote_install->get_package( $plugin_name ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
};

if ( class_exists( 'WP_CLI' ) ) {
	WP_CLI::add_command( 'fusion plugin url', $fusion_plugin_url_cmd );
}

/* Omit closing PHP tag to avoid "Headers already sent" issues. */