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


Top ↑

Return Return

(mixed) Will be an array if $single is false. Will be value of meta data field if $single is true.


Top ↑

Source Source

File: includes/class-edd-db-customer-meta.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.6 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.