WC_Gateway_Paypal_Helper::mask_email
Deprecated since 0.5.0. It is no longer supported and may be removed in future releases. Use Automattic\WooCommerce\Gateways\PayPal\Helper::mask_email() instead.
Mask email address before @ keeping the full domain.
Method of the class: WC_Gateway_Paypal_Helper{}
No Hooks.
Returns
String. The masked email address or original input if invalid.
Usage
$result = WC_Gateway_Paypal_Helper::mask_email( $email );
- $email(string) (required)
- The email address to mask.
Changelog
| Deprecated since 10.5.0 | Use Automattic\WooCommerce\Gateways\PayPal\Helper::mask_email() instead. |
WC_Gateway_Paypal_Helper::mask_email() WC Gateway Paypal Helper::mask email code WC 10.8.1
public static function mask_email( $email ) {
wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Helper::mask_email()' );
return PayPalHelper::mask_email( (string) $email );
}