Skip to content

Instantly share code, notes, and snippets.

@nathaningram
Created September 24, 2024 19:13
Show Gist options
  • Select an option

  • Save nathaningram/9b779327296d89747f76c0bd7c8d3acd to your computer and use it in GitHub Desktop.

Select an option

Save nathaningram/9b779327296d89747f76c0bd7c8d3acd to your computer and use it in GitHub Desktop.
Remove WooCommerce Site Status Label from Toop Admin Menu
add_action( 'admin_bar_menu', function( $wp_admin_bar ) {
if ( is_object( $wp_admin_bar ) && $wp_admin_bar->get_node( 'woocommerce-site-visibility-badge' ) ) {
$wp_admin_bar->remove_node( 'woocommerce-site-visibility-badge' );
}
}, 100 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment