Constants::get_constant( string $name )

Attempts to retrieve the “constant” from constants Manager, and if it hasn’t been set, then attempts to get the constant with the constant() function. If that also hasn’t been set, attempts to get a value from filters.


Description Description


Parameters Parameters

$name

(Required) The name of the constant.


Top ↑

Return Return

(mixed) null if the constant does not exist or the value of the constant.


Top ↑

Source Source

File: vendor/automattic/jetpack-constants/src/class-constants.php




Top ↑

User Contributed Notes User Contributed Notes

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