• wprun

    (@wordpressrun)


    What is the syntax for conditional tags for membership groups. I am using members by memberpress.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wprun

    (@wordpressrun)

    I just checked and it grouped by role.

    Thread Starter wprun

    (@wordpressrun)

    I think it is something like this, but it doesn’t work:

    in_array(‘subscriber’, (array) $user->roles)

    Does anyone know the correct code to add a condition based on role?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional Tags – Using Members by Memberpress’ is closed to new replies.