Automattic\WooCommerce\StoreApi\Schemas\V1

BillingAddressSchema::get_properties()publicWC 1.0

Term properties.

Method of the class: BillingAddressSchema{}

No Hooks.

Return

Array.

Usage

$BillingAddressSchema = new BillingAddressSchema();
$BillingAddressSchema->get_properties();

BillingAddressSchema::get_properties() code WC 9.1.2

public function get_properties() {
	$properties = parent::get_properties();
	return array_merge(
		$properties,
		[
			'email' => [
				'description' => __( 'Email', 'woocommerce' ),
				'type'        => 'string',
				'context'     => [ 'view', 'edit' ],
				'required'    => true,
			],
		]
	);
}