EDD_Customer
EDD_Customer Class
Description Description
Source Source
File: includes/class-edd-customer.php
Changelog Changelog
Version | Description |
---|---|
2.3 | Introduced. |
Methods Methods
- __construct — Get things going
- __get — Magic __get function to dispatch a call to retrieve a private property
- add_email — Attach an email to the customer
- add_meta — Add meta data field to a customer.
- add_note — Add a note for the customer
- attach_payment — Attach payment to the customer then triggers increasing stats
- create — Creates a customer
- decrease_purchase_count — Decrease the customer purchase count
- decrease_value — Decrease a customer's lifetime value
- delete_meta — Remove metadata matching criteria from a customer.
- get_meta — Retrieve customer meta field for a customer.
- get_notes — Get the parsed notes for a customer as an array
- get_notes_count — Get the total number of notes we have after parsing
- get_payment_ids
- get_payments
- get_raw_notes — Get the notes column for the customer
- increase_purchase_count — Increase the purchase count of a customer
- increase_value — Increase the customer's lifetime value
- remove_email — Remove an email from the customer
- remove_payment — Remove a payment from this customer, then triggers reducing stats
- sanitize_columns — Sanitize the data for update/create
- set_primary_email — Set an email address as the customer's primary email
- setup_customer — Given the customer data, let's set the variables
- update — Update a customer record
- update_meta — Update customer meta field based on customer ID.