llms_maybe_define_constant( string $name, mixed $value )

Define a constant if it’s not already defined


Parameters Parameters

$name

(string) (Required) Constant name.

$value

(mixed) (Required) Constant values.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/llms.functions.core.php

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


Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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