Function: delete_blog_option

delete_blog_option( integer $id, string $option )

Removes option by name for a given blog id. Prevents removal of protected WordPress options.

Shortcut: dbo

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.


Name Type(s) Default Value Description
$id integer

A blog ID. Can be null to refer to the current blog.

$option string

Name of option to remove. Expected to not be SQL-escaped.



True, if option is successfully deleted. False on failure.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.