Hide code from Revisor
-
Hello,
I have some tracking code, but not WordPress. I am hiding it if the user is an Admin or Super Admin, so that we do not get picked up in the analytics. I also want to hide it from the Revisor, should I use:<?php if ( current_user_can('editor') ) : ?> //custom code <?php endif; ?>
or
<?php if ( current_user_can('revisor') ) : ?> //custom code <?php endif; ?>
or do you have another way that I should be checking for the role that is built into the plugin?
Thanks,
Aaron
Thank you
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hide code from Revisor’ is closed to new replies.