Skip to:
Content

BuddyPress.org

Changeset 7893


Ignore:
Timestamp:
02/16/2014 09:25:05 PM (11 years ago)
Author:
boonebgorges
Message:

Introduce bp_add_option() function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-options.php

    r7819 r7893  
    213213
    214214    return apply_filters( 'bp_get_option', $value );
     215}
     216
     217/**
     218 * Add an option.
     219 *
     220 * This is a wrapper for {@link add_blog_option()}, which in turn stores
     221 * settings data on the appropriate blog, given your current setup.
     222 *
     223 * @since BuddyPress (2.0.0)
     224 *
     225 * @param string $option_name The option key to be set.
     226 * @param mixed $value The value to be set.
     227 */
     228function bp_add_option( $option_name, $value ) {
     229    return add_blog_option( bp_get_root_blog_id(), $option_name, $value );
    215230}
    216231
Note: See TracChangeset for help on using the changeset viewer.