Skip to:
Content
Pages
Categories
Search
Top
Bottom

Take a hidden groups id


  • Artyom
    Participant

    @onaker

    Hello! I’m using buddypress with buddyblog and blog categories for group. I want create some filter. If I use bp_has_groups() it not get hidden groups ID if I logged as user or not logged in (it works only for admin). How can I get the ID of all hidden groups anywhere on my site for all types of users – administrator, user, or unregistered user? I need to use ID for filtering of posts.

Viewing 2 replies - 1 through 2 (of 2 total)

  • Bit Boy
    Participant

    @bitboy

    Hi Artyom,
    If you need to fetch hidden groups, you can pass

    show_hidden=> true in bp_has_groups args. Like

    
    
    bp_has_groups(array( 'show_hidden'=> true ) )
    
    

    Hope it helps.

    Best
    B


    Artyom
    Participant

    @onaker

    Thank you! Good day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar