dokan_customer_has_order_from_this_seller( $customer_id, $seller_id = null )

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
}

Leave a Reply

Your email address will not be published. Required fields are marked *