/** * transactions_list_table_total * * @access public * @param string $TXN_total * @param EE_Transaction $transaction * @return string */ public static function transactions_list_table_total($TXN_total = '', EE_Transaction $transaction) { foreach ($transaction->line_items(array(array('OBJ_type' => 'Promotion'))) as $promotion_line_item) { $edit_link = EEH_URL::add_query_args_and_nonce(array('action' => 'edit', 'PRO_ID' => $promotion_line_item->OBJ_ID()), EE_PROMOTIONS_ADMIN_URL); $TXN_total = '<a href="' . $edit_link . '" title="' . __('A Promotion was redeemed during this Transaction. Click to View Promotion', 'event_espresso') . '">' . ' <sup><span class="dashicons dashicons-tag green-icon ee-icon-size-12"></span></sup>' . $TXN_total . '</a>'; break; } return $TXN_total; }