Core Function
View Source on Trac ↗ delete_option()
delete_option( mixed $option ) Removes an option by name. Prevents removal of protected WordPress options.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $option string | Name of the option to delete. Expected to not be SQL-escaped. Required |
Return Value
(bool)
True if the option was deleted, false otherwise.
Function Information
Since Version
1.2.0
Source File
wp-includes/option.php
Advertisement