EDD_DB_Customers
EDD_DB_Customers Class
Description Description
Source Source
File: includes/class-edd-db-customers.php
Changelog Changelog
Version | Description |
---|---|
2.1 | Introduced. |
Methods Methods
- __construct — Get things started
- add — Add a customer
- attach_payment — Attaches a payment ID to a customer
- count — Count the total number of customers in the database
- create_table — Create the table
- decrement_stats — Decrements customer purchase stats
- delete — Delete a customer
- exists — Checks if a customer exists
- get_column_defaults — Get default column values
- get_columns — Get columns and formats
- get_customer_by — Retrieves a single customer from the database
- get_customers — Retrieve customers from the database
- get_last_changed — Retrieves the value of the last_changed cache key for customers.
- increment_stats — Increments customer purchase stats
- insert — Insert a new customer
- prepare_customer_query_args — Prepare query arguments for `EDD_Customer_Query`.
- remove_payment — Removes a payment ID from a customer
- set_last_changed — Sets the last_changed cache key for customers.
- update — Update a customer
- update_customer_email_on_user_update — Updates the email address of a customer record when the email on a user is updated