if has_membership() php function
-
Hi,
I am trying figure out how to use a function such as has_membership() to do php if/else statements in my theme template pages.For example, certain dropdown links will only be visible to members with membership id 1, so in my header.php page I would do —
<?php if (has_membership(1)) { ?> //code.. <?php } else { ?> //more code... <?php } ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘if has_membership() php function’ is closed to new replies.