[buddypress-trac] [BuddyPress Trac] #3108: allow themes to customize BuddyPress before it loads
buddypress-trac
noreply at wordpress.org
Mon Jul 4 22:28:30 UTC 2016
#3108: allow themes to customize BuddyPress before it loads
-------------------------+-----------------------------
Reporter: ptahdunbar | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Core | Version: 1.5
Severity: normal | Resolution:
Keywords: close |
-------------------------+-----------------------------
Changes (by r-a-y):
* keywords: needs-refresh => close
Comment:
If a theme needs this functionality, they can add it themselves in their
own theme's `functions.php` file:
{{{#!php
function my_after_theme_setup_bp_mods() {
if ( ! function_exists( 'buddypress' ) ) {
return;
}
require dirname( __FILE__ ) . '/buddypress-functions.php';
}
add_action( 'after_setup_theme', 'my_after_theme_setup_bp_mods' );
}}}
Themes that include some form of BuddyPress functionality are probably
already doing some form of BP check anyway.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3108#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list