Core Function
View Source on Trac ↗ delete_blog_option()
delete_blog_option( mixed $id, mixed $option ) Removes an option by name for a given blog ID. Prevents removal of protected WordPress options.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $id int | A blog ID. Can be null to refer to the current blog. Required |
| $option string | Name of option to remove. Expected to not be SQL-escaped. Required |
Return Value
(bool)
True if the option was deleted, false otherwise.
Function Information
Since Version
MU (3.0.0)
Source File
wp-includes/ms-blogs.php
Advertisement