EDD_Customer::set_primary_email( string $new_primary_email = '' )
Set an email address as the customer’s primary email
Description Description
This will move the customer’s previous primary email to an additional email
Parameters Parameters
- $new_primary_email
-
(Optional) The email address to remove from the customer
Default value: ''
Return Return
(bool) If the email was set as primary successfully
Source Source
File: includes/class-edd-customer.php
Changelog Changelog
Version | Description |
---|---|
2.6 | Introduced. |