Hi All,
I banged away for over an hour on this and couldn’t find an answer.
What I’d like to do is use some conditional PHP code within one of my WP templates to call either one of two header PHP files that are a part of my WP theme. I’d like to use ccaps to control the if/then
So for instance, if the user has access to the ccap “optin”, they’d get the equivalent of this: <?php get_header(); ?>
If the user does not have access to the ccap “optin” they’d get this: <? include ("header-generic.php'); ?>
I tried fiddling with the second item in Example 9 here (https://s2member.com/kb-article/s2if-simple-shortcode-conditionals/) but couldn’t get it to work. Google searches turned up empty too.
Any ideas? Thanks!