Automattic\WooCommerce\Internal\Admin

FeaturePlugin::define()protectedWC 1.0

Define constant if not already set.

Method of the class: FeaturePlugin{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->define( $name, $value );
$name(string) (required)
Constant name.
$value(string|true|false) (required)
Constant value.

FeaturePlugin::define() code WC 7.1.0

protected function define( $name, $value ) {
	if ( ! defined( $name ) ) {
		define( $name, $value );
	}
}