wpgenie icon

woocommerce-product-vendor email integration

wpgenie | PRO | 12/21/23 12:56:04 PM UTC | 0 โญ | 1541 ๐Ÿ‘๏ธ | Never โฐ | []
PHP |

1.2 KB

|

None

|

0 ๐Ÿ‘

/

0 ๐Ÿ‘Ž

add_filter( 'woocommerce_email_recipient_auction_fail', 'custom_add_vendor_to_email_recipients', 50, 2 );
add_filter( 'woocommerce_email_recipient_auction_finished', 'custom_add_vendor_to_email_recipients', 50, 2 );
add_filter( 'woocommerce_email_recipient_auction_relist', 'custom_add_vendor_to_email_recipients', 50, 2 );
add_filter( 'woocommerce_email_recipient_bid_note', 'custom_add_vendor_to_email_recipients', 50, 2 );
function custom_add_vendor_to_email_recipients( $recipient, $object ) {
ย 
ย  ย  if ( ! is_object( $object ) ) {
ย  ย  ย  ย  return $recipient;
ย  ย  }
ย 
ย  ย  $key ย  ย  ย  ย  = false;
ย  ย  $author_info = false;
ย  ย  $arrayrec ย  ย = explode( ',', $recipient );
ย 
ย  ย  $post_id ย  ย  = method_exists( $object, 'get_id' ) ? $object->get_id() : $object->id;
ย  ย  $vendor_id = WC_Product_Vendors_Utils::get_vendor_id_from_product( $post_id ย );
ย 
ย  ย  if ( ! empty( $vendor_id ) ) {
ย  ย  ย  ย  $vendor_data = WC_Product_Vendors_Utils::get_vendor_data_by_id( $vendor_id );
ย  ย  ย  ย  $vendor_email = $vendor_data['email'];
ย  ย  }
ย 
ย  ย  if ( $vendor_email ) {
ย  ย  ย  ย  $recipient = str_replace( '[woocommerce-product-vendor]', $vendor_email, $recipient );
ย 
ย  ย  } else {
ย  ย  ย  ย  $recipient = str_replace( '[woocommerce-product-vendor]', '', $recipient );
ย  ย  }
ย  ย  return $recipient;
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž

    
        
  • utkuyulgen icon
    03/21/26 02:29:07 PM UTC
    CSS |

    0 B

    |

    0 ๐Ÿ‘

    /

    0 ๐Ÿ‘Ž

    โœ… Leaked Exploit Documentation:
    ย 
    https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    ย 
    This made me $13,000 in 2 days.
    ย 
    Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 38% โ€” they will simply correct the exchange rate.
    The first COMPLETED transaction always goes through โ€” this has been tested and confirmed over the last days.
    ย 
    Edit: I've gotten a lot of questions about the maximum amount it works for โ€” as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from Swapzone โ€” instant swap).
    
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    ๐Ÿ‘

    /

    ๐Ÿ‘Ž