Automattic\WooCommerce\Blocks\Domain\Services

CheckoutFieldsAdmin::init()publicWC 1.0

Initialize hooks. This is not run Store API requests.

Method of the class: CheckoutFieldsAdmin{}

No Hooks.

Return

null. Nothing (null).

Usage

$CheckoutFieldsAdmin = new CheckoutFieldsAdmin();
$CheckoutFieldsAdmin->init();

CheckoutFieldsAdmin::init() code WC 9.0.1

public function init() {
	add_filter( 'woocommerce_admin_billing_fields', array( $this, 'admin_address_fields' ), 10, 3 );
	add_filter( 'woocommerce_admin_billing_fields', array( $this, 'admin_contact_fields' ), 10, 3 );
	add_filter( 'woocommerce_admin_shipping_fields', array( $this, 'admin_address_fields' ), 10, 3 );
	add_filter( 'woocommerce_admin_shipping_fields', array( $this, 'admin_order_fields' ), 10, 3 );
}