Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation

AbstractOrderConfirmationBlock::render_additional_field()protectedWC 1.0

Render custom field row.

Method of the class: AbstractOrderConfirmationBlock{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->render_additional_field( $field );
$field(array) (required)
An additional field and value.

AbstractOrderConfirmationBlock::render_additional_field() code WC 8.9.0

protected function render_additional_field( $field ) {
	return sprintf(
		'<dt>%1$s</dt><dd>%2$s</dd>',
		esc_html( $field['label'] ),
		esc_html( $field['value'] )
	);
}