Hi Anthony,

 

You would use two conditional functions in your code.

 

The first is a standard WordPress conditional function:

 

is_user_logged_in()

 

See: https://developer.wordpress.org/reference/functions/is_user_logged_in/

 

The second is an iMember360 conditional function:

 

i4w_has_tags()

 

Here are some examples explaining the use of i4w_has_tags():

 

  1. Statement evaluates as TRUE if the user HAS tag 123.

 

i4w_has_tags( ‘123’ )

 

  1. Statement evaluates as TRUE if the user HAS tag 123 OR 234.

 

i4w_has_tags( ‘123,234’ )

 

  1. Statement evaluates as TRUE if the user HAS tag 123 OR 234.

 

i4w_has_tags( array(123,234) )

 

  1. Statement evaluates as TRUE if the user HAS tag 123 AND 234.

 

i4w_has_tags( ‘123,234’, ‘all’ )

 

  1. Statement evaluates as TRUE if the user HAS tag 123 AND 234.

 

i4w_has_tags( array(123,234), ‘all’ )

 

Any function preceded with an exclamation mark ! specifies the negative use case of the function.

 

  1. Statement evaluates as TRUE if the user DOES NOT HAVE tag 123.

 

!i4w_has_tags( ‘123’ )

 

It is also possible to combine conditions with && (representing AND) and || (representing OR).

 

  1. Statement evaluates as TRUE if the user HAS tag 123 AND DOES NOT HAVE tag 234.

 

i4w_has_tags( ‘123’ ) && !i4w_has_tags( ‘234’ )

 

  1. Statement evaluates as TRUE if the user HAS tag 123 OR DOES NOT HAVE tag 234.

 

i4w_has_tags( ‘123’ ) || !i4w_has_tags( ‘234’ )