Automattic\WooCommerce\Internal\Utilities

FilesystemUtil::constant_exists()private staticWC 1.0

Check if a constant exists and is not null.

Метод класса: FilesystemUtil{}

Хуков нет.

Возвращает

true|false. True if the constant exists and its value is not null.

Использование

$result = FilesystemUtil::constant_exists( $name ): bool;
$name(строка) (обязательный)
Constant name.

Код FilesystemUtil::constant_exists() WC 9.7.1

private static function constant_exists( string $name ): bool {
	return Constants::is_defined( $name ) && ! is_null( Constants::get_constant( $name ) );
}