WordPress 5.3.0 Hooks, Functions, Classes and Methods
Page 12

user_can()

Returns whether a particular user has the specified capability.