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.

Метод класса: OrderAttributionController{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Список изменений

С версии 9.0.0 Введена.

Код OrderAttributionController::stamp_checkout_html_element_once() WC 9.6.1

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;
}