current_user_can_for_blog
- current_user_can_for_blog is deprecated since version 6.7.0!
Alternative: Use
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: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: 6.7.0
Description
Returns whether the current user has the specified capability for a given site.