get_refunded_by(); $who_refunded = new WP_User( $refunded_by ); if ( $who_refunded->exists() ) { $refund_author = sprintf( '%2$s', /* translators: 1: ID who refunded */ sprintf( esc_attr__( 'ID: %d', 'woocommerce' ), absint( $who_refunded->ID ) ), esc_html( $who_refunded->display_name ) ); } elseif ( ! $refunded_by ) { // Nobody was logged in when the refund was created, so no person can be named. $refund_author = esc_html__( 'System', 'woocommerce' ); } else { // A user was recorded but their account is gone, so there is no name left to show. $refund_author = ''; } ?>
get_id() ), esc_html( wc_format_datetime( $refund->get_date_created(), get_option( 'date_format' ) . ', ' . get_option( 'time_format' ) ) ), $refund_author // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above, where it is built. ); } else { printf( /* translators: 1: refund id 2: refund date */ esc_html__( 'Refund #%1$s - %2$s', 'woocommerce' ), esc_html( $refund->get_id() ), esc_html( wc_format_datetime( $refund->get_date_created(), get_option( 'date_format' ) . ', ' . get_option( 'time_format' ) ) ) ); } ?> get_reason() ) : ?>

get_reason() ); ?>

get_id() ); ?>    
get_amount(), array( 'currency' => $refund->get_currency() ) ) ); ?>