bp_delete_option( string $option_name )

Delete an option.

Description

This is a wrapper for delete_blog_option(), which in turn deletes settings data (such as bp-pages) on the appropriate blog, given your current setup.

Parameters

$option_name

(Required) The option key to be deleted.

Return

(bool) True on success, false on failure.

Source

File: bp-core/bp-core-options.php

function bp_delete_option( $option_name ) {
	return delete_blog_option( bp_get_root_blog_id(), $option_name );
}

Changelog

Changelog
Version Description
BuddyPress 1.5.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.