Resources

My Agape try

Your Agape try


Support Forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




WP_Role::has_role(), add_role(), remove_role() equivalents

UserPost

5:13 am
July 4, 2009


MMM

New Member

posts 1

1

Hello,

Does, Role Scoper provide equivalents to these functions?


11:23 am
July 6, 2009


Kevin

Admin

posts 1326

2

WordPress API for the users' WP role will still work ($current_user->is_role, $current_user->add_role, $current_user->remove_role).

I have not yet developed equivalent API for RS-assigned General Roles. Will make a note to do so soon.

For now, all you have are:

  • $current_user->assigned_blog_roles : array property with role handles as array keys
  • $role_assigner->assign_blog_roles() : Probably not convenient as API, but see role_assigner_rs.php for function def and general_roles.php for usage (role addition or removal)


Reply to Topic: WP_Role::has_role(), add_role(), remove_role() equivalents

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 4 + 9        (Required)

Topic Reply:


 

About the Agapetry forum

Currently Online:

11 Guests

Maximum Online: 88

Forums:

Groups: 2

Forums: 7

Topics: 667

Posts: 3053

Members:

There are 601 members

There are 1 guests


Kevin has made 1326 posts

Top Posters:

metal450 - 98

YikYak - 58

Ragnar - 36

Daisy - 35

LorenW - 33

Administrator: Kevin | Moderators: Kevin