Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
EDD_DB_Customer_Meta::add_meta( int $customer_id, string $meta_key, mixed $meta_value, bool $unique = false )
Add meta data field to a customer.
Description Description
For internal use only. Use EDD_Customer->add_meta() for public usage.
Parameters Parameters
- $customer_id
-
(Required) Customer ID.
- $meta_key
-
(Required) Metadata name.
- $meta_value
-
(Required) Metadata value.
- $unique
-
(Optional) Whether the same key should not be added.
Default value: false
Return Return
(bool) False for failure. True for success.
Source Source
File: includes/class-edd-db-customer-meta.php
Changelog Changelog
Version | Description |
---|---|
2.6 | Introduced. |