20, 'columns' => [ 'id' => __( 'Transaction #', '2checkout' ), 'form_id' => __( 'Payment Form', '2checkout' ), 'refno' => __( 'Reference #', '2checkout' ), 'payer_name' => __( 'Payer Name', '2checkout' ), 'payer_email' => __( 'Payer Email', '2checkout' ), 'amount' => __( 'Amount', '2checkout' ), 'custom_fields' => __( 'Custom Fields', '2checkout' ), 'status' => __( 'Payment Status', '2checkout' ), 'time' => __( 'Time', '2checkout' ), ], 'sortable' => [], 'orderby' => 'id', 'order' => 'desc', 'data' => [], 'bulk_actions' => [ 'delete' => __( 'Delete', '2checkout' ), ], ]; global $wpdb; $transactions = $wpdb->get_results( "SELECT * FROM `{$wpdb->prefix}2co_transactions`" ); foreach ( $transactions as $transaction ) { $custom_fields = get_transaction_meta( $transaction->id, 'custom_fields', true ); $custom_fields_html = '
{$name} : {$field['value']}
"; } } $custom_fields_html .= '