ASTRA_Ext_WooCommerce_Markup::unset_fields_for_modern_checkout( array $checkout_fields )

Prefill the checkout fields if available in url.


Description


Parameters

$checkout_fields

(array) (Required) checkout fields array.


Source

File: addons/woocommerce/classes/class-astra-ext-woocommerce-markup.php

		public function unset_fields_for_modern_checkout( $checkout_fields ) {

			// Unset defalut billing email from Billing Details.
			unset( $checkout_fields['billing']['billing_email'] );
			unset( $checkout_fields['account']['account_username'] );
			unset( $checkout_fields['account']['account_password'] );

			return $checkout_fields;
		}

Changelog

Changelog
Version Description
3.9.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.