LLMS_Site::get_feature_constant( string $feature )
Retrieve a constant value for a site feature
Description Description
This allows site features to be explicitly enabled or disabled in a wp-config.php file.
Parameters Parameters
- $feature
-
(string) (Required) Feature id/key.
Return Return
(bool)
Source Source
File: includes/class.llms.site.php
protected static function get_feature_constant( $feature ) {
$constant = sprintf( 'LLMS_SITE_FEATURE_%s', strtoupper( $feature ) );
if ( defined( $constant ) ) {
return constant( $constant );
}
return null;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.12.0 | Introduced. |