Heray-Was-Here
Server : LiteSpeed
System : Linux server310.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User : myveqfxv ( 6863)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/myveqfxv/public_html/wp-content/plugins/gutenverse/lib/framework/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/myveqfxv/public_html/wp-content/plugins/gutenverse/lib/framework/includes/class-upgrader.php
<?php
/**
 * Upgrader class
 *
 * @author Jegstudio
 * @since 1.0.0
 * @package gutenverse-framework
 */

namespace Gutenverse\Framework;

/**
 * Class Upgrader
 *
 * Show notice if user install Gutenverse below version 2.0.0 while they installing Satelite plugin with Core Framework.
 *
 * @package gutenverse-framework
 */
class Upgrader {
	/**
	 * Class constructor.
	 */
	public function __construct() {
		$this->set_upgrader_framework_init();

		add_action( 'wp_ajax_gutenverse_upgrader_framework_init_close', array( $this, 'upgrader_framework_init_close' ) );
	}

	/**
	 * Change option framework to false.
	 */
	public function upgrader_framework_init_close() {
		update_option( $this->get_framework_init_option_name(), false, false );
	}

	/**
	 * Get Framework Init Upgrader Option Name.
	 *
	 * @return string.
	 */
	public function get_framework_init_option_name() {
		return 'gutenverse_' . wp_get_theme()->template . '_upgrader_framework_init';
	}

	/**
	 * Set content width upgrader option meta
	 */
	public function set_upgrader_framework_init() {
		$flag = ! get_option( $this->get_framework_init_option_name() ) && defined( 'GUTENVERSE_VERSION' ) && version_compare( GUTENVERSE_VERSION, '2.0.0', '<' );

		if ( $flag ) {
			add_option( $this->get_framework_init_option_name(), true );
		}
	}
}

Hry