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


Top ↑

Return Return

(boolean) True if updated, false if not.


Top ↑

Source Source

File: includes/admin/settings/register-settings.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.