current_user_can_for_blog


current_user_can_for_blog ( $blog_id, $capability, $args )

Parameters:
  • (int) blog_id Site ID.
  • (string) capability Capability name.
  • (mixed) args Optional further parameters, typically starting with an object ID.
Returns:
  • (bool) Whether the user has the given capability.
Defined at:
Change Log:
  • 5: .
  • 5: .

Description

Returns whether the current user has the specified capability for a given site.

Related Functions

current_user_can_for_site, current_user_can, get_users_of_blog, remove_user_from_blog, get_currentuserinfo

Top Google Results

User discussions

wpseek mobile