Skip to content

Commit

Permalink
fix: vendor send email not working
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir1991 committed Jan 3, 2020
1 parent 9be224b commit 6c9451b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/REST/StoreController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace WeDevs\Dokan\REST;

use WeDevs\Dokan\Vendor\Vendor;
use Dokan_REST_Product_Controller;
use WP_Error;
use WP_Query;
Expand Down Expand Up @@ -724,7 +725,7 @@ public function send_email( $request ) {
$params = $request->get_params();
$vendor = dokan()->vendor->get( $params['id'] );

if ( ! $vendor instanceof Dokan_Vendor || ! $vendor->get_id() ) {
if ( ! $vendor instanceof Vendor || ! $vendor->get_id() ) {
return rest_ensure_response(
new WP_Error(
'vendor_not_found',
Expand Down

0 comments on commit 6c9451b

Please sign in to comment.