Automattic\WooCommerce\Internal\Admin
FeaturePlugin::define
Define constant if not already set.
Method of the class: FeaturePlugin{}
No Hooks.
Returns
null. Nothing (null).
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() FeaturePlugin::define code WC 10.3.5
protected function define( $name, $value ) {
if ( ! defined( $name ) ) {
define( $name, $value );
}
}