Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation

AbstractOrderConfirmationBlock::render_content()protectedWC 1.0

This renders the content of the block within the wrapper. The permission determines what data can be shown under the given context.

Метод класса: AbstractOrderConfirmationBlock{}

Хуков нет.

Возвращает

Строку.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->render_content( $order, $permission, $attributes, $content );
$order(\WC_Order) (обязательный)
Order object.
$permission(строка|false)
If the current user can view the order details or not.
По умолчанию: false
$attributes(массив)
Block attributes.
По умолчанию: []
$content(строка)
Original block content.
По умолчанию: ''

Код AbstractOrderConfirmationBlock::render_content() WC 9.5.1

abstract protected function render_content( $order, $permission = false, $attributes = [], $content = '' );