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


(string) (Required) Option name.


(mixed) (Required) Option value.

Top ↑

Return Return

(boolean) True if option value has changed, false if not or if update failed.

Top ↑

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


Top ↑

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.