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::delete_meta( int $customer_id, string $meta_key = '', mixed $meta_value = '' )
Remove metadata matching criteria from a customer.
Description Description
For internal use only. Use EDD_Customer->delete_meta() for public usage.
You can match based on the key, or key and value. Removing based on key and value, will keep from removing duplicate metadata with the same key. It also allows removing all metadata matching key, if needed.
Parameters Parameters
- $customer_id
-
(Required) Customer ID.
- $meta_key
-
(Optional) Metadata name.
Default value: ''
- $meta_value
-
(Optional) Metadata value.
Default value: ''
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. |