Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation

AbstractOrderConfirmationBlock::render_additional_fields()protectedWC 1.0

Render custom fields for the order.

Method of the class: AbstractOrderConfirmationBlock{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->render_additional_fields( $fields );
$fields(array) (required)
List of additional fields with values.

AbstractOrderConfirmationBlock::render_additional_fields() code WC 8.9.0

protected function render_additional_fields( $fields ) {
	if ( empty( $fields ) ) {
		return '';
	}
	return '<dl class="wc-block-components-additional-fields-list">' . implode( '', array_map( array( $this, 'render_additional_field' ), $fields ) ) . '</dl>';
}