wpseek.com
A WordPress-centric search engine for devs and theme authors



current_user_can_for_blog › WordPress Function

Since3.0.0
Deprecated6.7.0
current_user_can_for_blog ( $blog_id, $capability, $args )
Parameters: (3)
  • (int) $blog_id Site ID.
    Required: Yes
  • (string) $capability Capability name.
    Required: Yes
  • (mixed) $args Optional further parameters, typically starting with an object ID.
    Required: Yes
Returns:
  • (bool) Whether the user has the given capability.
Defined at:
Codex:
Change Log:
  • 5.3.0
  • 5.8.0

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



Source

function current_user_can_for_blog( $blog_id, $capability, ...$args ) {
	return current_user_can_for_site( $blog_id, $capability, ...$args );
}