WordPress at a glance
filter is not described

woocommerce_disable_admin_bar filter-hook . 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.

Usage

add_filter( 'woocommerce_disable_admin_bar', 'filter_function_name_8876' );
function filter_function_name_8876( $show_admin_bar ){
	// filter...

	return $show_admin_bar;
}
$show_admin_bar(true|false)
If should display admin bar.

Where the hook is called

wc_disable_admin_bar()
woocommerce_disable_admin_bar
WC_Admin::prevent_admin_access()
woocommerce_disable_admin_bar
woocommerce/includes/wc-user-functions.php 22
if ( apply_filters( 'woocommerce_disable_admin_bar', true ) && ! ( current_user_can( 'edit_posts' ) || current_user_can( 'manage_woocommerce' ) ) ) {
woocommerce/includes/admin/class-wc-admin.php 155
if ( apply_filters( 'woocommerce_disable_admin_bar', true ) && ! is_ajax() && isset( $_SERVER['SCRIPT_FILENAME'] ) && basename( sanitize_text_field( wp_unslash( $_SERVER['SCRIPT_FILENAME'] ) ) ) !== 'admin-post.php' ) {

Where in WP core the hook is used WooCommerce

Usage not found.