Automattic\WooCommerce\Blocks\BlockTypes
ProductDetails::render_tabs
Gets the tabs with their content to be rendered by the block.
Method of the class: ProductDetails{}
No Hooks.
Returns
String. The tabs html to be rendered by the block
Usage
// protected - for code of main (parent) or child class $result = $this->render_tabs();
ProductDetails::render_tabs() ProductDetails::render tabs code WC 10.6.2
protected function render_tabs() {
ob_start();
rewind_posts();
while ( have_posts() ) {
the_post();
woocommerce_output_product_data_tabs();
}
$tabs = ob_get_clean();
return $tabs;
}