Skip to content

Commit

Permalink
fix: send withdraw request email to admin is fixed #810 (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonh3 authored Apr 22, 2020
1 parent 98cc580 commit 627fae1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/Dashboard/Templates/Withdraw.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ protected function handle_approval_request() {
return $this->add_error( $withdraw->get_error_message(), $withdraw->get_error_code() );
}

do_action( 'dokan_after_withdraw_request', $user_id, $amount, $method );

wp_redirect( add_query_arg( array(
'message' => 'request_success',
), dokan_get_navigation_url( 'withdraw' ) ) );
Expand Down

0 comments on commit 627fae1

Please sign in to comment.