WordPress at Your Fingertips
function is not described

WooCommerce::define() private WC 1.0

Define constant if not already set.

{} It's a method of the class: WooCommerce{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WooCommerce::define() WC 5.7.1

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