bp_add_option( string $option_name, mixed $value )

Add an option.


Description Description

This is a wrapper for add_blog_option(), which in turn stores settings data on the appropriate blog, given your current setup.


Parameters Parameters

$option_name

(Required) The option key to be set.

$value

(Required) The value to be set.


Top ↑

Return Return

(bool) True on success, false on failure.


Top ↑

Source Source

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

function bp_add_option( $option_name, $value ) {
	return add_blog_option( bp_get_root_blog_id(), $option_name, $value );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.