• Resolved backpackingseries

    (@backpackingseries)


    Hi,

    Thank you for this amazing plugin!

    Perhaps someone more experienced with AAM can please help.

    Since WordPress does not have a native function to check user roles (unless I am missing something obvious), I check for capabilities instead. So something like
    if ( current_user_can( ‘manage_options‘ ) ) && is_admin() ) {—-}
    to execute a certain code.

    I wonder whether AAM provides a function to check for a user’s role – like
    ! is_user_role ( 'editor', 'author' )
    etc?

    I could do this using a function-class but, I’d like to explore if AAM offers it out-of-the-box. I am not a PHP ninja and would be happy to stand corrected if the line of thinking is completely off the track.

    Kind regards,

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘is_user_role Function in AAM?’ is closed to new replies.