edd_update_option( string $key = '', string|bool|int $value = false )
Update an option
Description Description
Updates an edd 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 edd_options array.
Parameters Parameters
- $key
-
(Optional) The Key to update
Default value: ''
- $value
-
(Optional) The value to set the key to
Default value: false
Return Return
(boolean) True if updated, false if not.
Source Source
File: includes/admin/settings/register-settings.php
Changelog Changelog
Version | Description |
---|---|
2.3 | Introduced. |