Can anyone assist with this code?
Hi everyone
I have enabled the Inquiry Form Login option in settings which forces users to be logged in order to view the contact tab for an ad.
However this allows users with any role (ie subscriber, contributor etc) to view the contact tab.
I ave found the code that enables this option, and I was wondering if anyone knows a way to amend the code so that it allows only users with a Contributor role to view the contact tab?
<?php if ( ( $cp_options->ad_inquiry_form && is_user_logged_in() ) || ! $cp_options->ad_inquiry_form ) {
Any help much appreciated
g