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