Recent

wherego_update_option function

wherego_update_option()

Update an option.

Updates a setting value in both the db and the global variable.

Since: 2.1.0
Source: includes/options-api.php line 87

Signature

function wherego_update_option( $key = ..., $value = ... ): boolean;

Parameters

TypeNameDescription
string$keyThe Key to update.
string|bool|int$valueThe value to set the key to.

Returns

boolean — true if updated, false if not.