diff --git a/includes/class-paypal-for-woocommerce-multi-account-management-list-data.php b/includes/class-paypal-for-woocommerce-multi-account-management-list-data.php index 19f03f4..5afe443 100644 --- a/includes/class-paypal-for-woocommerce-multi-account-management-list-data.php +++ b/includes/class-paypal-for-woocommerce-multi-account-management-list-data.php @@ -36,7 +36,14 @@ function column_default($item, $column_name) { $user_info = ''; if ($condition_user) { if ($condition_user != 'all') { - $user_info = '

' . sprintf('When User ID is %s', $condition_user) . '

'; + $user = get_user_by( 'id', $condition_user ); + $user_string = sprintf( + esc_html__( '%1$s (#%2$s %3$s)', 'woocommerce' ), + $user->display_name, + absint( $user->ID ), + $user->user_email + ); + $user_info = '

' . sprintf('When Author is %s', $user_string) . '

'; } } $other_condition = ''; @@ -76,7 +83,7 @@ function column_default($item, $column_name) { add_thickbox(); $product_text = ''; - if (!empty($product_ids)) { + if (!empty($product_ids) && is_array($product_ids)) { $products = $product_ids; $product_text .= 'Products'; $product_text .= '