Returns whether the current user has the specified capability for a given site.
Parameters
$blog_id
intrequired- Site ID.
$capability
stringrequired- Capability name.
$args
mixedoptional- Optional further parameters, typically starting with an object ID.
Source
}
/**
Changelog
Version | Description |
---|---|
6.7.0 | Use current_user_can_for_site() instead. |
5.8.0 | Wraps current_user_can() after switching to blog. |
5.3.0 | Formalized the existing and already documented ...$args parameter by adding it to the function signature. |
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.