Automattic\WooCommerce\Blocks\Domain\Services

CheckoutFields::default_sanitize_callback()publicWC 1.0

If a field does not declare a sanitization callback, this is the default sanitization callback.

Method of the class: CheckoutFields{}

No Hooks.

Return

Mixed.

Usage

$CheckoutFields = new CheckoutFields();
$CheckoutFields->default_sanitize_callback( $value, $field );
$value(mixed) (required)
Value to sanitize.
$field(array) (required)
Field data.

CheckoutFields::default_sanitize_callback() code WC 9.0.1

public function default_sanitize_callback( $value, $field ) {
	return $value;
}