You appear to be a bot. Output may be restricted
Description
Render the Email Column
Usage
$string = EDD_Payment_History_Table::column_email( $payment );
Parameters
- $payment
- ( array ) required – Contains all the data of the payment
Returns
string Data shown in the Email column
Source
File name: easy-digital-downloads/includes/admin/payments/class-payments-table.php
Lines:
1 to 28 of 28
public function column_email( $payment ) { $row_actions = array(); $email = edd_get_payment_user_email( $payment->ID ); // Add search term string back to base URL $search_terms = ( isset( $_GET['s'] ) ? trim( $_GET['s'] ) : '' ); if ( ! empty( $search_terms ) ) { $this->base_url = add_query_arg( 's', $search_terms, $this->base_url ); } if ( edd_is_payment_complete( $payment->ID ) && ! empty( $email ) ) { $row_actions['email_links'] = '<a href="' . add_query_arg( array( 'edd-action' => 'email_links', 'purchase_id' => $payment->ID ), $this->base_url ) . '">' . __( 'Resend Purchase Receipt', 'easy-digital-downloads' ) . '</a>'; } $row_actions['delete'] = '<a href="' . wp_nonce_url( add_query_arg( array( 'edd-action' => 'delete_payment', 'purchase_id' => $payment->ID ), $this->base_url ), 'edd_payment_nonce') . '">' . __( 'Delete', 'easy-digital-downloads' ) . '</a>'; $row_actions = apply_filters( 'edd_payment_row_actions', $row_actions, $payment ); if ( empty( $email ) ) { $email = __( '(unknown)', 'easy-digital-downloads' ); } $value = $email . $this->row_actions( $row_actions ); return apply_filters( 'edd_payments_table_column', $value, $payment->ID, 'email' ); }