WC_Customer::get_email()
Return the customer's email.
Method of the class: WC_Customer{}
No Hooks.
Return
String
.
Usage
$WC_Customer = new WC_Customer(); $WC_Customer->get_email( $context );
- $context(string)
- What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'
Changelog
Since 3.0.0 | Introduced. |
WC_Customer::get_email() WC Customer::get email code WC 9.7.1
public function get_email( $context = 'view' ) { return $this->get_prop( 'email', $context ); }