Reply To: Use custom ID field when importing2021-03-22T21:35:34+05:30

Home Forums WooWallet Importer Use custom ID field when importing Reply To: Use custom ID field when importing

Subrata Mal
Keymaster
Post count: 207

You can customize our import module using woo_wallet_importer_user filter. Please check the below code referance which will fetch the user by ID.

add_filter('woo_wallet_importer_user', 'woo_wallet_importer_user_callback', 10, 2);

if(!function_exists('woo_wallet_importer_user_callback')){
    function woo_wallet_importer_user_callback($user, $data){
        return get_user_by('id', $data);
    }
}
WhatsApp