Advertisement
majeedraza

WooCommerce - Unset the admin reports that you don't want

Mar 17th, 2017
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2.   // WooCommerce - Unset the admin reports that you don't want
  3.   add_filter( 'woocommerce_admin_reports', 'custom_reports' );
  4.   function custom_reports( $reports ) {
  5.     unset($reports['customers']);
  6.     unset($reports['stock']);
  7.     unset($reports['orders']['reports']['coupon_usage']);
  8.     return $reports;
  9.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement