Skip to content

Commit

Permalink
fix: save store_data first while creating vendor so that vendor get c…
Browse files Browse the repository at this point in the history
…reated with proper data (#702)
  • Loading branch information
saimonh3 authored Nov 19, 2019
1 parent 7309db5 commit be23919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-vendor-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ public function create( $data = [] ) {
}
}

$vendor->set_store_name( $store_data['store_name'] );
$vendor->update_meta( 'dokan_profile_settings', $store_data );
$vendor->set_store_name( $store_data['store_name'] );
$vendor->save();

do_action( 'dokan_new_vendor', $vendor_id );
Expand Down

0 comments on commit be23919

Please sign in to comment.