Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I need to remove the forum-tab in user profile pages. I have tried alot of things but no result. I do not want to do it by css.

Tried this: http://www.themightymo.com/2012/01/26/how-to-add-remove-and-change-the-order-of-buddypress-component-menu/ but no luck. Any advice?

Thank you in advance, Emily

share|improve this question
    
Could you add the actual code you have tried? –  toscho Nov 29 '12 at 14:07

1 Answer 1

try this:

function my_setup_nav() {
    global $bp;

    // this cause errors if your not logged-in.
    // $bp->bp_nav['conversations'] = false;

    // use this instead:
    unset($bp->bp_nav['conversations']);
}

add_action( 'bp_setup_nav', 'my_setup_nav', 1000 );
share|improve this answer
    
Hi, and thank you for response. Code has no effect unfortunately. Nothing happens at all. Using bbpress theme from bbp-theme-compat. Any idea what could be wrong? –  Emily Nov 29 '12 at 15:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.