cafe_delete_option()
Purpose
Deletes a global option value.
Syntax
cafe_delete_option( string $selector ): bool
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
$selector |
string | - | Field name or field key. |
Return value
true when the value is gone (also when nothing was saved), otherwise false.
Example
cafe_delete_option( 'company_phone' );
Notes
- Fires the same delete hooks as
cafe_delete_field()with object typeoption.