From 6b3f228a555c315c2257ed31ed7d18c4cd5247d4 Mon Sep 17 00:00:00 2001 From: Gustavo Bordoni Date: Sat, 2 Aug 2014 21:57:14 -0300 Subject: [PATCH] Adding the information about who did the refund on the backend --- includes/admin/meta-boxes/views/html-order-refund.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/includes/admin/meta-boxes/views/html-order-refund.php b/includes/admin/meta-boxes/views/html-order-refund.php index bdf74280e2f..1114d9994d2 100644 --- a/includes/admin/meta-boxes/views/html-order-refund.php +++ b/includes/admin/meta-boxes/views/html-order-refund.php @@ -2,14 +2,22 @@ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } +$who_refunded = new WP_User( $refund->post->post_author ); ?>
+ display_name ); ?> + - - post_date ) ); ?> + post_date ) ) ); + if ( $who_refunded->exists() ){ + echo ' ' . esc_attr__( 'by', 'Ex: Refund - $date >by< $username', 'woocommerce' ) . ' ' . '' . esc_attr( $who_refunded->display_name ) . '' ; + } + ?> get_refund_reason() ) : ?>

get_refund_reason() ); ?>