• 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_DB_Customers::attach_payment() – Attaches a payment ID to a customer

You appear to be a bot. Output may be restricted

Description

Attaches a payment ID to a customer

Usage

EDD_DB_Customers::attach_payment( $customer_id, $payment_id );

Parameters

$customer_id
( mixed ) optional –
$payment_id
( mixed ) optional –

Returns

void

Source

File name: easy-digital-downloads/includes/class-edd-db-customers.php
Lines:

1 to 12 of 12
  public function attach_payment( $customer_id = 0, $payment_id = 0 ) {

    $customer = new EDD_Customer( $customer_id );

    if( empty( $customer->id ) ) {
      return false;
    }

    // Attach the payment, but don't increment stats, as this function previously did not
    return $customer->attach_payment( $payment_id, false );

  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 6th June 2020

Primary Sidebar

Information

Function name: EDD_DB_Customers::attach_payment
Class ref: EDD_DB_Customers
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/class-edd-db-customers.php
File ref: includes/class-edd-db-customers.php
Deprecated?: No
API Letters: A,C,D,E,P

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