Automattic\WooCommerce\Internal\Orders

OrderAttributionController::stamp_checkout_html_element_once()publicWC 9.0.0

Handles the <wc-order-attribution-inputs> element for checkout forms, ensuring that the field is only output once.

Method of the class: OrderAttributionController{}

No Hooks.

Return

null. Nothing (null).

Usage

$OrderAttributionController = new OrderAttributionController();
$OrderAttributionController->stamp_checkout_html_element_once();

Changelog

Since 9.0.0 Introduced.

OrderAttributionController::stamp_checkout_html_element_once() code WC 9.1.2

public function stamp_checkout_html_element_once() {
	if ( self::$is_stamp_checkout_html_called ) {
		return;
	}
	$this->stamp_html_element();
	self::$is_stamp_checkout_html_called = true;
}