Automattic\WooCommerce\Internal\Orders
OrderAttributionController::stamp_checkout_html_element_once
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.
Returns
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() OrderAttributionController::stamp checkout html element once code WC 9.9.3
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; }