WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

BillingAddressSchema::sanitize_callback() public WC 1.0

Sanitize and format the given address object.

{} It's a method of the class: BillingAddressSchema{}

No Hooks.

Return

Array.

Usage

$BillingAddressSchema = new BillingAddressSchema();
$BillingAddressSchema->sanitize_callback( $address, $request, $param );
$address(array) (required)
Value being sanitized.
$request(\WP_REST_Request) (required)
The Request.
$param(string) (required)
The param being sanitized.

Code of BillingAddressSchema::sanitize_callback() WC 5.8.0

public function sanitize_callback( $address, $request, $param ) {
	$address          = parent::sanitize_callback( $address, $request, $param );
	$address['email'] = wc_clean( wp_unslash( $address['email'] ) );
	return $address;
}