WC_Gateway_Paypal_Helper::redact_datapublic staticWC 1.0

Deprecated since 0.5.0. It is no longer supported and may be removed in future releases. Use Automattic\WooCommerce\Gateways\PayPal\Helper::redact_data() instead.

Remove PII (Personally Identifiable Information) from data for logging.

This function recursively traverses the data array and redacts sensitive information while preserving the structure for debugging purposes.

Method of the class: WC_Gateway_Paypal_Helper{}

No Hooks.

Returns

Mixed. The data with PII redacted.

Usage

$result = WC_Gateway_Paypal_Helper::redact_data( $data );
$data(mixed) (required)
The data to remove PII from (array, string, or other types).

Changelog

Deprecated since 10.5.0 Use Automattic\WooCommerce\Gateways\PayPal\Helper::redact_data() instead.

WC_Gateway_Paypal_Helper::redact_data() code WC 10.7.0

public static function redact_data( $data ) {
	wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Helper::redact_data()' );
	return PayPalHelper::redact_data( $data );
}