Using the storefront theme, I want to remove breadcrumbs when logged in to the administrator panel WooCommerce |Products Store Activity| Inbox| Orders| Stock| Reviews| Notices| breadcrumbs.
Please note this: I need if you are logged in as the current user, not an administrator. The code I used using CSS:
.woocommerce-layout__header-breadcrumbs {
display: none !important;
}
.woocommerce-layout {
display: none !important;
}
Add the following code snippet to your active theme's functions.php file -
remove_action( 'in_admin_header', array( 'WC_Admin_Loader', 'embed_page_header' ) );