Automattic\WooCommerce\Internal\Admin

FeaturePlugin::define_constants()protectedWC 1.0

Define Constants.

Метод класса: FeaturePlugin{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->define_constants();

Code of FeaturePlugin::define_constants() WC 7.1.0

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' );
	}
}