Automattic\WooCommerce\Blocks\BlockTypes
ProductDetails::render_tabs()
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() 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; }