Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide Directory

  • Profile photo of James
    James
    Participant

    @janismo

    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)
  • Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

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

    Profile photo of James
    James
    Participant

    @janismo

    wow, it was fast :)

    will try, thank you.

    Profile photo of James
    James
    Participant

    @janismo

    @DJPaul

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

    Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

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

    Profile photo of James
    James
    Participant

    @janismo

    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?

    Profile photo of Hugo
    Hugo
    Moderator

    @hnla

    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.