• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / EDD_Payment_History_Table::column_email() – Render the Email Column

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' );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 14th November 2021

Primary Sidebar

Information

Function name: EDD_Payment_History_Table::column_email
Class ref: EDD_Payment_History_Table
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/admin/payments/class-payments-table.php
File ref: includes/admin/payments/class-payments-table.php
Deprecated?: No
API Letters: C,E,H,P,T

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites