This function has been deprecated. BuddyPress 1.7.0 instead.
bp_core_allow_default_theme( $themes )
On multiblog installations you must first allow themes to be activated and show up on the theme selection screen. This function will let the BuddyPress bundled themes show up on the root blog selection screen and bypass this step. It also means that the themes won’t show for selection on other blogs.
Description
Return
(array)
Source
File: bp-core/deprecated/buddypress/1.7.php
function bp_core_allow_default_theme( $themes ) { _deprecated_function( __FUNCTION__, '1.7' ); if ( !bp_current_user_can( 'bp_moderate' ) ) return $themes; if ( bp_get_root_blog_id() != get_current_blog_id() ) return $themes; if ( isset( $themes['bp-default'] ) ) return $themes; $themes['bp-default'] = true; return $themes; }
Changelog
Version | Description |
---|---|
BuddyPress 1.7.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.