This function has been deprecated. BuddyBoss 1.0.0 instead.
bp_do_register_theme_directory()
Determine whether BuddyPress should register the bp-themes directory.
Description
Return
(bool) True if bp-themes should be registered, false otherwise.
Source
File: bp-core/deprecated/buddyboss/1.0.php
function bp_do_register_theme_directory() {
_deprecated_function( __FUNCTION__, '1.0.0' );
// If bp-default exists in another theme directory, bail.
// This ensures that the version of bp-default in the regular themes
// directory will always take precedence, as part of a migration away
// from the version packaged with BuddyPress.
// foreach ( array_values( (array) $GLOBALS['wp_theme_directories'] ) as $directory ) {
// if ( is_dir( $directory . '/bp-default' ) ) {
// return false;
// }
// }
// // If the current theme is bp-default (or a bp-default child), BP
// // should register its directory.
// $register = 'bp-default' === get_stylesheet() || 'bp-default' === get_template();
// // Legacy sites continue to have the theme registered.
// if ( empty( $register ) && ( 1 == get_site_option( '_bp_retain_bp_default' ) ) ) {
// $register = true;
// }
// /**
// * Filters whether BuddyPress should register the bp-themes directory.
// *
// * @since BuddyPress 1.9.0
// *
// * @param bool $register If bp-themes should be registered.
// */
// return apply_filters( 'bp_do_register_theme_directory', $register );
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | BuddyBoss 1.0.0 |
| BuddyPress 1.9.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.