Function alch_delete_value sets '' (empty string) as the value for a given $optionID. Technically it's not deletion, it's an update, but still :)
alch_delete_value
''
$optionID
The function takes $optionID as a parameter. $optionID should match the id of some field in the main configuration objectarrow-up-right.
id
Returns a boolean: True if option value has changed, false if not or if update failed.
boolean
True
false
$optionUpdated = alch_delete_value( 'field-id' );
If field-id had a value other than an empty string before calling alch_delete_value, $optionUpdated will be true.
field-id
$optionUpdated
true
Last updated 5 years ago