• I have a list of line items. There is one line item that I only want to be seen when the “recruiter” is logged in. There are two log in roles for this site. A job seeker and a recruiter.
    I have tried this code and it does not work:

    if (is_user_recruiter_logged_in) {
      ;<a href="https://www.websitehere.com/resumes">View Resumes</a>
    }

    Thanks is advance

Viewing 1 replies (of 1 total)
  • This may work:

    if (current_user_can('recruiter') {
      <a href="https://www.websitehere.com/resumes">View Resumes</a>
    }
Viewing 1 replies (of 1 total)
  • The topic ‘If condition for a role’ is closed to new replies.