Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @blasyfeel

    Thanks for reaching out.

    You can simply hide the withdraw tab from the vendor dashboard by using the following code in your child theme’s functions.php file:

    
    function hide_withdraw_menu( $settings ) {
      $user = wp_get_current_user();
      $connected_vendor_id = get_user_meta( $user->ID, 'dokan_connected_vendor_id', true );
      
      if( !empty( $connected_vendor_id ) ){
        unset( $settings['withdraw'] );
      }
      return $settings;
    
    }
    add_filter( 'dokan_get_dashboard_nav', 'hide_withdraw_menu' );

    Let me know the update.

    Regards,

    Thread Starter blasyfeel

    (@blasyfeel)

    Hello,

    I tried the code but nothing changes I still see the withdraw tab in the seller’s dashboard

    I also want to hide the payment tab in the seller dashboard setting.

    Thank you

    Hello @blasyfeel

    Thanks for your reply.

    Please make sure you have added the mentioned code in your child theme’s functions.php file as we have tested the code from our end before sharing it with you.

    Moreover, in order to hide the “Payment” tab from the vendor dashboard settings section, you can apply this below code in your child theme’s functions.php file:

    function vendor_dashboard_settings_nav($settings_sub) {
      unset ( $settings_sub['payment']);
      return $settings_sub;
    }
    add_filter( 'dokan_get_dashboard_settings_nav', 'vendor_dashboard_settings_nav', 99);

    If you face any difficulty implementing this, let me know.

    Cheers!

    Shafinoid

    (@shafinahmad01)

    Hello,
    I believe you are doing well,

    As you haven’t replied for a long, I’m considering that your query is being satisfied and I’m also resolving this topic.

    But feel free to create another one anytime.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide Payout in the seller’s dashboard’ is closed to new replies.