learndash_is_admin_user( int|WP_User $user )
Checks if a user has the admin capabilities.
Description #
Parameters #
- $user
-
(int|WP_User) (Optional) The
WP_User
object or user ID to check. Default 0.
Return #
(boolean) Returns true if the user is admin otherwise false.
Source #
File: includes/ld-groups.php