Warning: This function has been deprecated.

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 Description


Return Return

(array)


Top ↑

Source Source

File: bp-core/deprecated/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;
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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