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::get_meta( int $customer_id, string $meta_key = '', bool $single = false )
Retrieve customer meta field for a customer.
Description Description
For internal use only. Use EDD_Customer->get_meta() for public usage.
Parameters Parameters
- $customer_id
-
(Required) Customer ID.
- $meta_key
-
(Optional) The meta key to retrieve.
Default value: ''
- $single
-
(Optional) Whether to return a single value.
Default value: false
Return Return
(mixed) Will be an array if $single is false. Will be value of meta data field if $single is true.
Source Source
File: includes/class-edd-db-customer-meta.php
Changelog Changelog
Version | Description |
---|---|
2.6 | Introduced. |