WordPress at a glance
Главная Functions Users and Authors Roles and Capabilities

Category: Roles and Capabilities 9

add_role()

Add role, if it does not exist.

author_can()

Checks whether the author of the supplied post has a specific capability.

current_user_can()

Whether the current user has a specific capability.

get_role()

Retrieve role object.

is_super_admin()

Determine if user is a site admin.

map_meta_cap()

Map meta capabilities to primitive capabilities.

remove_role()

Remove role, if it exists.

user_can()

Whether a particular user has a specific capability.

wp_roles()

Retrieves the global WP_Roles instance and instantiates it if necessary.