Last active
November 29, 2018 17:18
-
-
Save jrick1229/a7b8a14852fd52486ec4386b3fe44cf7 to your computer and use it in GitHub Desktop.
Disable 'Subscriptions' reports tab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_admin_reports', 'remove_subscriptions_tab', 13, 1 ); | |
function remove_subscriptions_tab( $reports ) { | |
// unset the subscriptions tab | |
unset($reports['subscriptions']); | |
return $reports; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment