Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Helper_Options::set_option( string $key, mixed $val )
Update the value of an option
Parameters Parameters
- $key
-
(string) (Required) Option name.
- $val
-
(mixed) (Required) Option value.
Return Return
(boolean) True if option value has changed, false if not or if update failed.
Source Source
File: libraries/lifterlms-helper/includes/class-llms-helper-options.php
private function set_option( $key, $val ) { $options = $this->get_options(); $options[ $key ] = $val; return update_option( 'llms_helper_options', $options, false ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |