Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
Summary::render_summary_row()
Render row in the order summary.
Method of the class: Summary{}
No Hooks.
Return
String
.
Usage
// protected - for code of main (parent) or child class $result = $this->render_summary_row( $name, $value );
- $name(string) (required)
- name of row.
- $value(string) (required)
- value of row.
Summary::render_summary_row() Summary::render summary row code WC 9.4.2
protected function render_summary_row( $name, $value ) { return $value ? '<li class="wc-block-order-confirmation-summary-list-item"><span class="wc-block-order-confirmation-summary-list-item__key">' . esc_html( $name ) . '</span> <span class="wc-block-order-confirmation-summary-list-item__value">' . wp_kses_post( $value ) . '</span></li>' : ''; }