Method |
Description |
|
__construct ( ) |
Class Constructor |
|
add ( array $data = [] ) : int/bool |
Add a customer |
|
attach_payment ( integer $customer_id, integer $payment_id ) : boolean |
Attaches a payment ID to a customer |
|
count ( array $args = [] ) : integer |
Count the total number of customers in the database |
|
create_table ( ) : void |
Create the table |
|
decrement_stats ( integer $customer_id, float $amount ) : boolean |
Decrements customer purchase stats |
|
delete ( boolean | string | integer $_id_or_email = false ) : boolean | integer |
Delete a customer |
|
exists ( string $value = '', string $field = 'email' ) : boolean |
Checks if a customer exists |
|
get_column_defaults ( ) : array |
Get default column values |
|
get_columns ( ) : array |
Get columns and formats |
|
get_customer_by ( string $field = 'id', mixed $value ) : mixed |
Retrieves a single customer from the database |
|
get_customers ( array $args = [] ) : array | object | null |
Retrieve customers from the database |
|
increment_stats ( integer $customer_id, float $amount ) : boolean |
Increments customer purchase stats |
|
installed ( ) : boolean |
Check if the Customers table was ever installed |
|
remove_payment ( integer $customer_id, integer $payment_id ) : boolean |
Removes a payment ID from a customer |
|
update_customer_email_on_user_update ( integer $user_id, WP_User $old_user_data ) : boolean |
Updates the email address of a customer record when the email on a user is updated |
|