Skip to content

Commit

Permalink
fix: added extra params in `dokan_get_seller_active_withdraw_methods …
Browse files Browse the repository at this point in the history
…` filter (#813)

'$vendor_id' - should be pass on the filter -  'dokan_get_seller_active_withdraw_methods'  on function - dokan_get_seller_active_withdraw_methods().
Otherwise it's not possible to approve vendor's payment from admin panel while using the filter to add additional payment methods.
  • Loading branch information
tuhin18003 authored Apr 22, 2020
1 parent ac8ce69 commit f051324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Withdraw/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function dokan_get_seller_active_withdraw_methods( $vendor_id = 0 ) {
}
}

return apply_filters( 'dokan_get_seller_active_withdraw_methods', $active_payment_methods );
return apply_filters( 'dokan_get_seller_active_withdraw_methods', $active_payment_methods, $vendor_id );
}


Expand Down

0 comments on commit f051324

Please sign in to comment.