Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide Directory

  • @janismo

    Participant

    hi,

    searched around google and bp, found a lot of topics re how to hide particular blog from blogs directory and nothing re how to hide whole directory.
    idea is to have MU enabled, but not to show this possibility to members for some time, let’s say beginning stage of site operation. yes, I found topic re how to hide blog(0) from profile, but even if blog creation is switched off, member still sees blogs directory (with one/main blog) + my blogs menu in admin bar, what definitely will raise tons of questions :)

    if someone has some code line, please share.

    thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • @djpaul

    Keymaster

    `
    remove_action( ‘wp’, ‘bp_blogs_directory_blogs_setup’, 2 );
    `
    In your functions.php. I think.

    @janismo

    Participant

    wow, it was fast :)

    will try, thank you.

    @janismo

    Participant

    @DJPaul

    huge step forward, thanks, blogs directory disappeared…but, my blogs in admin bar and blogs in navigation still here.

    @djpaul

    Keymaster

    Well, yes, they weren’t meant to be removed by that. :)

    @janismo

    Participant

    ok, core developer doesn’t know this line (?) :)

    `remove_action(‘bp_adminbar_menus’, ‘bp_adminbar_blogs_menu’, 6);`

    for those, who needs, it will hide “my blogs” and account-“blogs” from admin bar.
    last stop – blogs in navigation, who will help?

    @hnla

    Participant

    Erm Yes I can guarantee you that Paul knows that snippet of code, if I do he certainly does it’s a common bit of code available in the Codex!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide Directory’ is closed to new replies.
Skip to toolbar