Recent

wzcbh_update_option function

wzcbh_update_option()

Update an option

Updates a setting value in both the db and the global variable. Warning: Passing in an empty, false or null string value will remove the key from the wzcbh_settings array.

Since: 1.0.0
Source: includes/options-api.php line 59

Signature

function wzcbh_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.