Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation

AdditionalInformation::render_content()protectedWC 1.0

This renders the content of the block within the wrapper.

Method of the class: AdditionalInformation{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->render_content( $order, $permission, $attributes, $content );
$order(\WC_Order) (required)
Order object.
$permission(string|false)
If the current user can view the order details or not.
Default: false
$attributes(array)
Block attributes.
Default: []
$content(string)
Original block content.
Default: ''

AdditionalInformation::render_content() code WC 9.6.0

protected function render_content( $order, $permission = false, $attributes = [], $content = '' ) {
	if ( ! $permission ) {
		return $content;
	}

	$this->remove_core_hooks();
	$content .= $this->get_hook_content( 'woocommerce_thankyou_' . $order->get_payment_method(), [ $order->get_id() ] );
	$content .= $this->get_hook_content( 'woocommerce_thankyou', [ $order->get_id() ] );
	$this->restore_core_hooks();

	return $content;
}