Snippets

Visser Labs Hiding unneccesary elements from the WooCommerce Status Dashboard widget (functions.php)

Created by Michael Visser
function admin_footer_woocommerce_dashboard_status_styling() {

?>
<style type="text/css">
body.wp-admin #woocommerce_dashboard_status .processing-orders,
body.wp-admin #woocommerce_dashboard_status .on-hold-orders,
body.wp-admin #woocommerce_dashboard_status .low-in-stock,
body.wp-admin #woocommerce_dashboard_status .out-of-stock {
	display:none;
}
</style>
<?php

}
add_action( 'admin_footer', 'admin_footer_woocommerce_dashboard_status_styling' );

Comments (0)