Sindbad~EG File Manager

Current Path : /home/j/u/l/julesbu/www/wp-content/plugins/wordpress-starter/core/Activator/
Upload File :
Current File : /home/j/u/l/julesbu/www/wp-content/plugins/wordpress-starter/core/Activator/Activator.php

<?php
namespace SiteGround_Central\Activator;

/**
 * Activator functions.
 */
class Activator {

	/**
	 * Option name whether to show the wizard on login.
	 *
	 * @since 1.0.0
	 */
	const SHOW_WIZARD = 'siteground_wizard_activation_redirect';

	/**
	 * Fires on plugin activation.
	 *
	 * @since 1.0.0
	 */
	public static function activate() {
		// Bail if php version doesn't support namespaces.
		if ( version_compare( PHP_VERSION, '5.6', '<' ) ) {
			die( esc_html__( 'The WordPress Starter plugin requires PHP version 5.6 or above.', 'siteground-wizard' ) );
		}

		$activation_redirect = ! \is_multisite() ? get_option( self::SHOW_WIZARD, 'yes' ) : get_site_option( self::SHOW_WIZARD, 'yes' );

		if ( 'yes' === $activation_redirect ) {
			// Update elementor options only on first activation.
			update_option( 'elementor_disable_color_schemes', 'yes', 'yes' );
			update_option( 'elementor_disable_typography_schemes', 'yes', 'yes' );
			// Update option whether to show the popup.
			! \is_multisite() ? update_option( self::SHOW_WIZARD, 'yes' ) : update_site_option( self::SHOW_WIZARD, 'yes' );
			// Keep the timestamp, when the plugin is installed.
			update_option( 'siteground_wizard_install_timestamp', time() );
		}
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists