LLMS_Site::get_feature( string $feature )
Get a single feature’s status
Description Description
Checks for a feature constant first and, if none is defined, uses the stored site setting (with a fallback to the default value), and a final fallback to false
if the feature cannot be found.
Parameters Parameters
- $feature
-
(Required) Feature id/key.
Return Return
(bool)
Source Source
File: includes/class.llms.site.php
Changelog Changelog
Version | Description |
---|---|
4.12.0 | Allow feature configuration via constants. |
3.0.0 | Introduced. |