Advertisement

Advertisement

is_super_admin

Determine if user is a site admin.

remove_role

Remove role, if it exists.

Advertisement

add_role

Add role, if it does not exist.

get_role

Retrieve role object.

wp_roles

Retrieves the global WP_Roles instance and instantiates it if necessary.

user_can

Whether a particular user has a specific capability.

Advertisement

author_can

Whether the author of the supplied post has a specific capability.

current_user_can

Whether the current user has a specific capability.