Automattic\WooCommerce\Blocks\BlockTypes

ProductDetails::render_tabs()protectedWC 1.0

Gets the tabs with their content to be rendered by the block.

Method of the class: ProductDetails{}

No Hooks.

Return

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() code WC 9.4.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;
}