dokan_get_withdraw_threshold( int $user_id )

Description #

In dokan pro, there is withdraw threshold option. A vendor can only make a withdraw request after the threshold days passed. We can get the threshold days by this function. We need to pass the vendor id to get threshold days.

Params #

$user_id: int (required)

Return #

int: threshold days

Usage #

// to get the global threshold days
dokan_get_withdraw_threshold( 0 );

// to get specific threshold days for vendor id 5.
// If vendor id 5 is not found, it will return the global threshold days 
dokan_get_withdraw_threshold( 5 );

Leave a Reply

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