Skip to content

Instantly share code, notes, and snippets.

@akther80
Created June 18, 2024 12:34
Show Gist options
  • Save akther80/085249173821c78e45493dce6fc3ed45 to your computer and use it in GitHub Desktop.
Save akther80/085249173821c78e45493dce6fc3ed45 to your computer and use it in GitHub Desktop.
Geeks - Hide withdraw section in dashboard
add_filter( 'tutor_dashboard/instructor_nav_items', 'hide_withdraw_menu_item', 10, 1 );
function hide_withdraw_menu_item( $menu_items ) {
if ( isset( $menu_items['withdraw'] ) ) {
unset( $menu_items['withdraw'] );
}
return $menu_items;
}
@akther80
Copy link
Author

Please add the above php code in your child theme's functions.php to hide withdraw menu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment