Automattic\WooCommerce\Blocks\BlockTypes
ClassicTemplate::render_order_received()
Render method for rendering the order confirmation template.
Метод класса: ClassicTemplate{}
Хуков нет.
Возвращает
Строку
. Rendered block type output.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->render_order_received();
Код ClassicTemplate::render_order_received() ClassicTemplate::render order received WC 9.6.0
protected function render_order_received() { ob_start(); echo '<div class="wp-block-group">'; echo sprintf( '<%1$s %2$s>%3$s</%1$s>', 'h1', get_block_wrapper_attributes(), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped esc_html__( 'Order confirmation', 'woocommerce' ) ); WC_Shortcode_Checkout::output( array() ); echo '</div>'; return ob_get_clean(); }