Created
January 19, 2022 07:04
-
-
Save digitalchild/f7d943a0010e5e38aee6b4803203fbd4 to your computer and use it in GitHub Desktop.
Disable the orders page on the WC Vendors Pro dashboard.
This file contains 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 | |
/** | |
* Disable existing order page hook into the dashboard links filter | |
* | |
* filter: wcv_pro_dashboard_urls | |
*/ | |
add_filter( 'wcv_pro_dashboard_urls', 'wcv_remove_order_page' ); | |
function wcv_remove_order_page( $pages ){ | |
unset( $pages['order']); | |
return $pages; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment