Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Hide Directory (7 posts)

Started 1 year, 4 months ago by: James

  • Profile picture of James James said 1 year, 4 months ago:

    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.

  • Profile picture of Paul Gibbs Paul Gibbs said 1 year, 4 months ago:
    remove_action( 'wp', 'bp_blogs_directory_blogs_setup', 2 );

    In your functions.php. I think.

  • Profile picture of James James said 1 year, 4 months ago:

    wow, it was fast :)

    will try, thank you.

  • Profile picture of James James said 1 year, 4 months ago:

    @DJPaul

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

  • Profile picture of Paul Gibbs Paul Gibbs said 1 year, 4 months ago:

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

  • Profile picture of James James said 1 year, 4 months ago:

    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 picture of Hugo Hugo said 1 year, 4 months ago:

    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!