Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
AbstractOrderConfirmationBlock::render_content()
This renders the content of the block within the wrapper. The permission determines what data can be shown under the given context.
Method of the class: AbstractOrderConfirmationBlock{}
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: ''
AbstractOrderConfirmationBlock::render_content() AbstractOrderConfirmationBlock::render content code WC 9.6.1
abstract protected function render_content( $order, $permission = false, $attributes = [], $content = '' );