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.


Top ↑

Source Source

File: includes/class-woocommerce.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.