Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - Unset the admin reports that you don't want
- add_filter( 'woocommerce_admin_reports', 'custom_reports' );
- function custom_reports( $reports ) {
- unset($reports['customers']);
- unset($reports['stock']);
- unset($reports['orders']['reports']['coupon_usage']);
- return $reports;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement