WordPress at a glance
function is not described

wc_disable_admin_bar() WC 1.0

Prevent any user who cannot 'edit_posts' (subscribers, customers etc) from seeing the admin bar.

Note: get_option( 'woocommerce_lock_down_admin', true ) is a deprecated option here for backwards compatibility. Defaults to true.

Hooks from the function
Return

true|false. Nothing.

Usage

wc_disable_admin_bar( $show_admin_bar );
$show_admin_bar(true|false) (required)
If should display admin bar.

Code of wc_disable_admin_bar() WC 5.3.0

<?php
function wc_disable_admin_bar( $show_admin_bar ) {
	if ( apply_filters( 'woocommerce_disable_admin_bar', true ) && ! ( current_user_can( 'edit_posts' ) || current_user_can( 'manage_woocommerce' ) ) ) {
		$show_admin_bar = false;
	}

	return $show_admin_bar;
}