Recent

crp_update_option function

crp_update_option()

Update an option

Updates an crp setting value in both the db and the global variable. Warning: Passing in a null value will remove the key from the crp_options array.

Since: 2.6.0
Source: includes/options-api.php line 137

Signature

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