LLMS_Site::update_feature( string $feature, bool $val )
Update the status of a specific feature and save it to the db
Parameters Parameters
- $feature
-
(string) (Required) Name / key of the feature.
- $val
-
(bool) (Required) Status of the feature [true = enabled; false = disabled].
Return Return
(void)
Source Source
File: includes/class.llms.site.php
public static function update_feature( $feature, $val ) { $features = self::get_features(); $features[ $feature ] = $val; update_option( 'llms_site_get_features', $features ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |