GRAYBYTE WORDPRESS FILE MANAGER6451

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/woocommerce/src/Internal/Admin/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/woocommerce/src/Internal/Admin//FeaturePlugin.php
<?php
/**
 * WooCommerce Admin: Feature plugin main class.
 */

namespace Automattic\WooCommerce\Internal\Admin;

defined( 'ABSPATH' ) || exit;

use Automattic\WooCommerce\Admin\API;
use Automattic\WooCommerce\Admin\Notes\Notes;
use Automattic\WooCommerce\Internal\Admin\Notes\OrderMilestones;
use Automattic\WooCommerce\Internal\Admin\Notes\WooSubscriptionsNotes;
use Automattic\WooCommerce\Internal\Admin\Notes\TrackingOptIn;
use Automattic\WooCommerce\Internal\Admin\Notes\WooCommercePayments;
use Automattic\WooCommerce\Internal\Admin\Notes\InstallJPAndWCSPlugins;
use Automattic\WooCommerce\Internal\Admin\Notes\SellingOnlineCourses;
use Automattic\WooCommerce\Internal\Admin\Notes\MagentoMigration;
use Automattic\WooCommerce\Admin\Features\Features;
use Automattic\WooCommerce\Admin\PluginsHelper;
use Automattic\WooCommerce\Admin\PluginsInstaller;
use Automattic\WooCommerce\Admin\ReportExporter;
use Automattic\WooCommerce\Admin\ReportsSync;
use Automattic\WooCommerce\Internal\Admin\CategoryLookup;
use Automattic\WooCommerce\Internal\Admin\Events;
use Automattic\WooCommerce\Internal\Admin\Onboarding\Onboarding;

/**
 * Feature plugin main class.
 *
 * @internal This file will not be bundled with woo core, only the feature plugin.
 * @internal Note this is not called WC_Admin due to a class already existing in core with that name.
 */
class FeaturePlugin {
	/**
	 * The single instance of the class.
	 *
	 * @var object
	 */
	protected static $instance = null;

	/**
	 * Indicates if init has been invoked already.
	 *
	 * @var bool
	 */
	private bool $initialized = false;

	/**
	 * Constructor
	 *
	 * @return void
	 */
	protected function __construct() {}

	/**
	 * Get class instance.
	 *
	 * @return object Instance.
	 */
	final public static function instance() {
		if ( null === static::$instance ) {
			static::$instance = new static();
		}
		return static::$instance;
	}

	/**
	 * Init the feature plugin, only if we can detect both Gutenberg and WooCommerce.
	 */
	public function init() {
		// Bail if WC isn't initialized (This can be called from WCAdmin's entrypoint).
		if ( ! defined( 'WC_ABSPATH' ) ) {
			return;
		}

		if ( $this->initialized ) {
			return;
		}
		$this->initialized = true;

		// Load the page controller functions file first to prevent fatal errors when disabling WooCommerce Admin.
		$this->define_constants();
		require_once WC_ADMIN_ABSPATH . '/includes/react-admin/page-controller-functions.php';
		require_once WC_ADMIN_ABSPATH . '/src/Admin/Notes/DeprecatedNotes.php';
		require_once WC_ADMIN_ABSPATH . '/includes/react-admin/core-functions.php';
		require_once WC_ADMIN_ABSPATH . '/includes/react-admin/feature-config.php';
		require_once WC_ADMIN_ABSPATH . '/includes/react-admin/wc-admin-update-functions.php';
		require_once WC_ADMIN_ABSPATH . '/includes/react-admin/class-experimental-abtest.php';

		if ( did_action( 'plugins_loaded' ) ) {
			self::on_plugins_loaded();
		} else {
			// Make sure we hook into `plugins_loaded` before core's Automattic\WooCommerce\Package::init().
			// If core is network activated but we aren't, the packaged version of WooCommerce Admin will
			// attempt to use a data store that hasn't been loaded yet - because we've defined our constants here.
			// See: https://github.com/woocommerce/woocommerce-admin/issues/3869.
			add_action( 'plugins_loaded', array( $this, 'on_plugins_loaded' ), 9 );
		}
	}

	/**
	 * Setup plugin once all other plugins are loaded.
	 *
	 * @return void
	 */
	public function on_plugins_loaded() {
		$this->hooks();
		$this->includes();
	}

	/**
	 * Define Constants.
	 */
	protected function define_constants() {
		$this->define( 'WC_ADMIN_APP', 'wc-admin-app' );
		$this->define( 'WC_ADMIN_ABSPATH', WC_ABSPATH );
		$this->define( 'WC_ADMIN_DIST_JS_FOLDER', 'assets/client/admin/' );
		$this->define( 'WC_ADMIN_DIST_CSS_FOLDER', 'assets/client/admin/' );
		$this->define( 'WC_ADMIN_PLUGIN_FILE', WC_PLUGIN_FILE );

		/**
		 * Define the WC Admin Images Folder URL.
		 *
		 * @deprecated 6.7.0
		 * @var string
		 */
		if ( ! defined( 'WC_ADMIN_IMAGES_FOLDER_URL' ) ) {
			/**
			 * Define the WC Admin Images Folder URL.
			 *
			 * @deprecated 6.7.0
			 * @var string
			 */
			define( 'WC_ADMIN_IMAGES_FOLDER_URL', plugins_url( 'assets/images', WC_PLUGIN_FILE ) );
		}

		/**
		 * Define the current WC Admin version.
		 *
		 * @deprecated 6.4.0
		 * @var string
		 */
		if ( ! defined( 'WC_ADMIN_VERSION_NUMBER' ) ) {
			/**
			 * Define the current WC Admin version.
			 *
			 * @deprecated 6.4.0
			 * @var string
			 */
			define( 'WC_ADMIN_VERSION_NUMBER', '3.3.0' );
		}
	}

	/**
	 * Include WC Admin classes.
	 */
	public function includes() {
		// Initialize Database updates, option migrations, and Notes.
		Events::instance()->init();
		Notes::init();

		// Initialize Plugins Installer.
		PluginsInstaller::init();
		PluginsHelper::init();

		// Initialize API.
		API\Init::instance();

		if ( Features::is_enabled( 'onboarding' ) ) {
			Onboarding::init();
		}

		if ( Features::is_enabled( 'analytics' ) ) {
			// Initialize Reports syncing.
			ReportsSync::init();
			CategoryLookup::instance()->init();

			// Initialize Reports exporter.
			ReportExporter::init();
		}

		// Admin note providers.
		// @todo These should be bundled in the features/ folder, but loading them from there currently has a load order issue.
		new WooSubscriptionsNotes();
		new OrderMilestones();
		new TrackingOptIn();
		new WooCommercePayments();
		new InstallJPAndWCSPlugins();
		new SellingOnlineCourses();
		new MagentoMigration();
	}

	/**
	 * Set up our admin hooks and plugin loader.
	 */
	protected function hooks() {
		add_filter( 'woocommerce_admin_features', array( $this, 'replace_supported_features' ), 0 );

		Loader::get_instance();
		WCAdminAssets::get_instance();
	}


	/**
	 * Overwrites the allowed features array using a local `feature-config.php` file.
	 *
	 * @param array $features Array of feature slugs.
	 */
	public function replace_supported_features( $features ) {
		/**
		 * Get additional feature config
		 *
		 * @since 6.5.0
		 */
		$feature_config = apply_filters( 'woocommerce_admin_get_feature_config', wc_admin_get_feature_config() );
		$features       = array_keys( array_filter( $feature_config ) );
		return $features;
	}

	/**
	 * Define constant if not already set.
	 *
	 * @param string      $name  Constant name.
	 * @param string|bool $value Constant value.
	 */
	protected function define( $name, $value ) {
		if ( ! defined( $name ) ) {
			define( $name, $value );
		}
	}

	/**
	 * Prevent cloning.
	 */
	private function __clone() {}

	/**
	 * Prevent unserializing.
	 */
	public function __wakeup() {
		die();
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
BlockTemplates
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
EmailImprovements
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
EmailPreview
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
ImportExport
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Logging
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Marketing
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Notes
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Onboarding
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Orders
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
ProductForm
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
ProductReviews
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
RemoteFreeExtensions
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Schedulers
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Settings
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Suggestions
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
WCPayPromotion
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:19
giriqfky / giriqfky
0644
ActivityPanels.php
1.578 KB
August 24 2022 02:07:06
giriqfky / giriqfky
0644
Analytics.php
7.853 KB
March 03 2025 22:28:12
giriqfky / giriqfky
0644
CategoryLookup.php
7.988 KB
April 20 2022 06:50:54
giriqfky / giriqfky
0644
Coupons.php
2.859 KB
November 14 2024 01:17:00
giriqfky / giriqfky
0644
CouponsMovedTrait.php
2.151 KB
April 20 2022 06:50:54
giriqfky / giriqfky
0644
CustomerEffortScoreTracks.php
17.233 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
Events.php
8.556 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
FeaturePlugin.php
6.533 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
Homescreen.php
8.652 KB
September 23 2024 20:44:04
giriqfky / giriqfky
0644
Loader.php
19.183 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
Marketing.php
6.289 KB
November 14 2024 01:17:00
giriqfky / giriqfky
0644
Marketplace.php
5.392 KB
March 03 2025 22:28:12
giriqfky / giriqfky
0644
MobileAppBanner.php
0.934 KB
April 20 2022 06:50:54
giriqfky / giriqfky
0644
RemoteInboxNotifications.php
0.91 KB
March 21 2023 20:45:06
giriqfky / giriqfky
0644
Settings.php
13.35 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
ShippingLabelBanner.php
4.667 KB
September 23 2024 20:44:04
giriqfky / giriqfky
0644
ShippingLabelBannerDisplayRules.php
3.631 KB
September 04 2024 20:34:26
giriqfky / giriqfky
0644
SiteHealth.php
2.314 KB
February 22 2023 07:17:34
giriqfky / giriqfky
0644
Survey.php
0.75 KB
April 20 2022 06:50:54
giriqfky / giriqfky
0644
SystemStatusReport.php
5.85 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
Translations.php
11.662 KB
November 14 2024 01:17:00
giriqfky / giriqfky
0644
WCAdminAssets.php
17.561 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
WCAdminSharedSettings.php
2.078 KB
April 22 2025 15:40:34
giriqfky / giriqfky
0644
WCAdminUser.php
4.077 KB
March 26 2024 16:56:02
giriqfky / giriqfky
0644
WcPayWelcomePage.php
6.321 KB
May 26 2025 19:11:58
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF