woocommerce_disable_admin_bar

The WooCommerce woocommerce disable admin bar function.

Description

woocommerce_disable_admin_bar( $show_admin_bar ); 

Parameters (1)

0. $show_admin_bar
The show admin bar.

Usage

  1. if ( !function_exists( 'woocommerce_disable_admin_bar' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The show admin bar. 
  5. $show_admin_bar = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_disable_admin_bar($show_admin_bar); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-deprecated-functions.php  
  1. function woocommerce_disable_admin_bar( $show_admin_bar ) { 
  2. wc_deprecated_function( __FUNCTION__, '3.0', 'wc_disable_admin_bar' ); 
  3. return wc_disable_admin_bar( $show_admin_bar );