woocommerce_product_tabs хук-фильтрWC 1.0

Filter tabs and allow third parties to add their own.

Each tab is an array containing title, callback and priority.

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

add_filter( 'woocommerce_product_tabs', 'wp_kama_woocommerce_product_tabs_filter' );

/**
 * Function for `woocommerce_product_tabs` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_product_tabs_filter( $array ){

	// filter...
	return $array;
}
$array
-

Где вызывается хук

В файле: /templates/single-product/tabs/tabs.php
woocommerce_product_tabs
woocommerce/templates/single-product/tabs/tabs.php 29
$product_tabs = apply_filters( 'woocommerce_product_tabs', array() );

Где используется хук в WooCommerce

woocommerce/includes/class-wc-template-loader.php 327
add_filter( 'woocommerce_product_tabs', array( __CLASS__, 'unsupported_theme_remove_review_tab' ) );
woocommerce/includes/wc-template-hooks.php 193
add_filter( 'woocommerce_product_tabs', 'woocommerce_default_product_tabs' );
woocommerce/includes/wc-template-hooks.php 194
add_filter( 'woocommerce_product_tabs', 'woocommerce_sort_product_tabs', 99 );