Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WooCommerce::define( string $name, string|bool $value )
Define constant if not already set.
Description Description
Parameters Parameters
- $name
-
(Required) Constant name.
- $value
-
(Required) Constant value.
Source Source
File: includes/class-woocommerce.php
private function define( $name, $value ) { if ( ! defined( $name ) ) { define( $name, $value ); } }