WordPress at a glance
function is not described

wc_current_user_has_role() WC 1.0

Checks if the current user has a role.

No Hooks.

Return

true|false. Nothing.

Usage

wc_current_user_has_role( $role );
$role(string) (required)
The role.

Code of wc_current_user_has_role() WC 5.3.0

<?php
function wc_current_user_has_role( $role ) {
	return wc_user_has_role( wp_get_current_user(), $role );
}