Recent

Options class

Options

Options class.

Namespace: WebberZone\AutoClose\Util
Since: 3.0.0
Source: includes/util/class-options.php line 17

Methods

get_options() static

Get the plugin options.

Since: 3.0.0
Line: 41

static public function get_options(  ): array;

Returns: array — Plugin options

get_option() static

Get a specific option.

Since: 3.0.0
Line: 64

static public function get_option( $key = ..., $default_value = ... ): mixed;
TypeNameDescription
string$keyOption to fetch.
mixed$default_valueDefault option.

Returns: mixed — Option value

update_option() static

Update an option.

Since: 3.0.0
Line: 105

static public function update_option( $key = ..., $value = ... ): boolean;
TypeNameDescription
string$keyThe Key to update.
string|bool|int$valueThe value to set the key to.

Returns: boolean — True if updated, false if not.

delete_option() static

Remove an option.

Since: 3.0.0
Line: 142

static public function delete_option( $key = ... ): boolean;
TypeNameDescription
string$keyThe Key to delete.

Returns: boolean — True if updated, false if not.

reset_settings() static

Reset settings.

Since: 3.0.0
Line: 170

static public function reset_settings(  );

get_defaults() static

Get default settings.

Since: 3.0.0
Line: 182

static public function get_defaults(  ): array;

Returns: array — Default settings

get_default_option() static

Get the default option for a specific key.

Since: 3.0.0
Line: 225

static public function get_default_option( $key = ... ): mixed;
TypeNameDescription
string$keyKey of the option to fetch.

Returns: mixed — Default value