daily pastebin goal
12%
SHARE
TWEET

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

lorro Mar 17th, 2017 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top