Forums

get capabilities of user, by user ID (1 post)

  1. cleek
    Member
    Posted 3 years ago #

    is there a function (or method) to know if a user ID has admin capabilities ?

    i'm writing a plugin which needs to know if a comment was posted by someone with admin caps. it's not enough to just check $comment->user_id ==1 , since there can be more than one user with admin caps on a blog.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags