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::update_meta( int $customer_id, string $meta_key, mixed $meta_value, mixed $prev_value = '' )

Update customer meta field based on Customer ID.


Description Description

For internal use only. Use EDD_Customer->update_meta() for public usage.

Use the $prev_value parameter to differentiate between meta fields with the same key and Customer ID.

If the meta field for the customer does not exist, it will be added.


Parameters Parameters

$customer_id

(Required) Customer ID.

$meta_key

(Required) Metadata key.

$meta_value

(Required) Metadata value.

$prev_value

(Optional) Previous value to check before removing.

Default value: ''


Top ↑

Return Return

(bool) False on failure, true if success.


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.