From 1f893c4fb228b18509987285b2b4a6618028ec9b Mon Sep 17 00:00:00 2001 From: Saimon Sajjad Date: Thu, 10 Jan 2019 10:34:58 +0600 Subject: [PATCH] fix: use correct function to retrieve seller id from an order is fixed #515 (#516) --- includes/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin-functions.php b/includes/admin-functions.php index a9d120051e..332c5f8726 100755 --- a/includes/admin-functions.php +++ b/includes/admin-functions.php @@ -113,7 +113,7 @@ function dokan_shop_order_custom_columns( $col ) { $has_sub = get_post_meta( $post->ID, 'has_sub_order', true ); if ( $has_sub != '1' ) { - $seller = get_user_by( 'id', dokan_get_seller_id_by_order( $post->ID ) ); + $seller = get_user_by( 'id', dokan_get_seller_id_by_order_id( $post->ID ) ); printf( '%s', esc_url( admin_url( 'edit.php?post_type=shop_order&vendor_id=' . $seller->ID ) ), esc_html( $seller->display_name ) ); }