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;
| Type | Name | Description |
|---|---|---|
string | $key | Option to fetch. |
mixed | $default_value | Default 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;
| Type | Name | Description |
|---|---|---|
string | $key | The Key to update. |
string|bool|int | $value | The 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;
| Type | Name | Description |
|---|---|---|
string | $key | The 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;
| Type | Name | Description |
|---|---|---|
string | $key | Key of the option to fetch. |
Returns: mixed — Default value