Automattic\WooCommerce\Blocks\BlockTypes

ProductDetails::render_tabs()protectedWC 1.0

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

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

Хуков нет.

Возвращает

Строку. The tabs html to be rendered by the block

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->render_tabs();

Код ProductDetails::render_tabs() WC 9.8.5

protected function render_tabs() {
	ob_start();
	rewind_posts();
	while ( have_posts() ) {
		the_post();
		woocommerce_output_product_data_tabs();
	}

	$tabs = ob_get_clean();

	return $tabs;
}