Skip to content

Commit

Permalink
Do not create a rule for new pending vendors by WC vendors, PFWMA-132
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakmaurya committed Jun 7, 2020
1 parent 6fb5d7d commit 3c1af73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function angelleye_paypal_for_woocommerce_multi_account_rule_save_dokan($
public function angelleye_paypal_for_woocommerce_multi_account_rule_save_wc_vendor($vendor_id) {
try {
if (class_exists('WCV_Vendors')) {
if (!WCV_Vendors::is_pending($vendor_id) && !WCV_Vendors::is_vendor($vendor_id)) {
if (WCV_Vendors::is_pending($vendor_id) || !WCV_Vendors::is_vendor($vendor_id)) {
return;
}
$post_id = $this->angelleye_is_vendor_account_exist($vendor_id);
Expand Down

0 comments on commit 3c1af73

Please sign in to comment.