WC_Gateway_Paypal_Helper::mask_email │ public static │ WC 1.0

Устарела с версии 0.5.0. Больше не поддерживается и может быть удалена. Используйте Automattic\WooCommerce\Gateways\PayPal\Helper::mask_email().

Mask email address before @ keeping the full domain.

Метод класса: WC_Gateway_Paypal_Helper{}

Хуков нет.

Возвращает

string. The masked email address or original input if invalid.

Использование

$result = WC_Gateway_Paypal_Helper::mask_email( $email );
$email(строка) (обязательный)
The email address to mask.

Список изменений

Устарела с 10.5.0 Use Automattic\WooCommerce\Gateways\PayPal\Helper::mask_email() instead.

Код WC_Gateway_Paypal_Helper::mask_email() WC 11.2.2

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 );
}