Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
BillingWrapper::render_content()
This renders the content of the billing wrapper.
Method of the class: BillingWrapper{}
No Hooks.
Return
null
. Nothing (null).
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: ''
BillingWrapper::render_content() BillingWrapper::render content code WC 9.6.1
protected function render_content( $order, $permission = false, $attributes = [], $content = '' ) { if ( ! $order || ! $order->has_billing_address() || ! $permission ) { return ''; } return $content; }