Languages: English • Italiano • 日本語 (Add your language)
Whether a user has capability or role. Similar to current_user_can(), but this function takes a user ID or object as its first parameter.
While checking against particular roles in place of a capability is supported in part, this practice is discouraged as it may produce unreliable results.
<?php user_can( $user, $capability ); ?>
Since: Version 3.1
user_can()
is located in wp-includes/capabilities.php
.
User Capabilities: user_can(), current_user_can(), current_user_can_for_blog()