Issue
Using storefront theme i want to remove breadcrumbs when logged in admin panel WooCommerce |Products Store Activity| Inbox| Orders| Stock| Reviews| Notices|
breadcrumbs. *please note this i need if you are logged in current user not a administrator. Code i used using css
.woocommerce-layout__header-breadcrumbs {
display: none !important;
}
.woocommerce-layout {
display: none !important;
}
Solution
Add the follows code snippet in your active theme’s functions.php –
remove_action( 'in_admin_header', array( 'WC_Admin_Loader', 'embed_page_header' ) );
Answered By – itzmekhokan
This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0