Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Help: bp-custom.php


Shnooka30
Participant

@shnooka30

//CUSTOM CODE FOR BUDDYPRESS
// Remove buddypress widgets from blogs other than the main blog
function hide_bp_widgets() {
if (!is_main_blog()) remove_all_actions(‘bp_register_widgets’);
}
add_action(‘plugins_loaded’, ‘hide_bp_widgets’, 1); // Has to run before bp_setup_widgets()

Skip to toolbar