Created
May 17, 2022 17:16
-
-
Save hivepress/119b50cc8e23b12965488854ff3de65e to your computer and use it in GitHub Desktop.
Remove the vendor dashboard from the user account menu #hivepress #marketplace
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 | |
add_filter( | |
'hivepress/v1/menus/user_account', | |
function( $menu ) { | |
unset( $menu['items']['vendor_dashboard'] ); | |
return $menu; | |
}, | |
1000 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment