WooCommerce::define()
Define constant if not already set.
Method of the class: WooCommerce{}
No Hooks.
Return
null
. Nothing (null).
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.
WooCommerce::define() WooCommerce::define code WC 9.2.3
private function define( $name, $value ) { if ( ! defined( $name ) ) { define( $name, $value ); } }