This function has been deprecated.
bp_core_activate_site_options( array $keys = array() )
Copy BP options from a single site to multisite config.
Description
Run when switching from single to multisite and we need to copy blog options to site options.
This function is no longer used.
Parameters
- $keys
-
(Optional) Array of site options.
Default value: array()
Return
(bool)
Source
File: bp-core/bp-core-options.php
function bp_core_activate_site_options( $keys = array() ) { if ( !empty( $keys ) && is_array( $keys ) ) { $bp = buddypress(); $errors = false; foreach ( $keys as $key => $default ) { if ( empty( $bp->site_options[ $key ] ) ) { $bp->site_options[ $key ] = bp_get_option( $key, $default ); if ( !bp_update_option( $key, $bp->site_options[ $key ] ) ) { $errors = true; } } } if ( empty( $errors ) ) { return true; } } return false; }
Changelog
Version | Description |
---|---|
1.6.0 | This function has been deprecated. |
BuddyPress 1.2.4 | 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.