Description #
Check if Customer has order from current vendor
Parameters #
( int ) $customer_id – The Customer ID
( int ) $seller_id = null – The Seller ID
Return #
( bool ) if the customer has ordered from the current seller/vendor true otherwise false
Hooks #
None
Usage #
if ( ! dokan_customer_has_order_from_this_seller( $id ) ) {
continue;
} else {
// do something
}