Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display buttons depending on Groups Group Type


  • tc3377
    Participant

    @tc3377

    Hi guys,

    I’m working on a child theme for BeSocial at the moment and I’m wanting to display a couple of predefined buttons in the header of a Group dependant on the Group Types of that Group. I can’t really find much information on the Group object to get the query together I’m looking for.

    What I’m trying to achieve in psuedo-code:

    $bingo = the specific Group Type defined by me
    $this_group_types = all the Group Types for the active Group page

    if(in_array($bingo, $this_group_types)){
    [display buttons]
    }
    else{
    [do nothing]
    }

    I understand its a pretty simple ask so any nudges in the right direction would be amazing!

    Thanks.

  • You must be logged in to reply to this topic.
Skip to toolbar