user_can


user_can ( $user, $capability )

Parameters:
  • (int|WP_User) $user User ID or object.
  • (string) $capability Capability name.
Returns:
  • (bool) Whether the user has the given capability.
Defined at:

Description

Whether a particular user has a specific capability.

Related Functions

author_can, is_user_admin, current_user_can, get_user_count, user_admin_url

Top Google Results

User discussions

wpseek mobile