Skip to:
Content
Pages
Categories
Search
Top
Bottom

disable my blogs on the admin bar and the profile page


  • nehal
    Participant

    @nelnehal

    i am trying to disable the “my blogs” on the admin bar and profile page. tried using this code in bp-custom.php

    function remove_blog_buttons(){
    remove_action( ‘bp_setup_nav’, ‘bp_blogs_setup_nav’ );
    remove_action( ‘admin_menu’, ‘bp_blogs_setup_nav’ );
    }
    add_action(‘plugins_loaded’,’remove_blog_buttons’);

    does anyone have a solution for this?
    thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘disable my blogs on the admin bar and the profile page’ is closed to new replies.
Skip to toolbar