• Resolved clint6998

    (@clint6998)


    I want to give access to a custom created user type called Carrier Compliance. I have tried replacing the two occurrences of

    if ( is_admin() ){

    to

    if ((is_admin()) or (!is_admin())){

    but that doesnt work. I thought that might allow all users but it does not. How do I define additional users without them being admins?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Clint,

    Are you talking about giving this user access to the back-end admin area of our plugin? If so, you could replace the is_admin with a check for capability, as referenced here: https://codex.wordpress.org/Function_Reference/current_user_can.

    Thread Starter clint6998

    (@clint6998)

    I have a plugin called User Role Editor Pro installed and have created a role called Carrier Compliance. I have set capabilities for that role but I do not see anywhere that FEUP is listed as an option.

    Plugin Author Rustaurius

    (@rustaurius)

    Hi Clint,

    We’re not quite sure what you’re talking about. FEUP is separate from the WordPress users. We thought you were trying to give a specific WordPress user account role access to the FEUP back end. If this isn’t what you were trying to do, then could you please clarify?

    • This reply was modified 7 years, 6 months ago by Rustaurius.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Other users than admin’ is closed to new replies.