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].


Top ↑

Return Return

(void)


Top ↑

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 );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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