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

The separator used for attributes found in Variation titles. phpcs:ignore

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

add_filter( 'woocommerce_product_variation_title_attributes_separator', 'wp_kama_woocommerce_product_variation_title_attributes_separator_filter', 10, 2 );

/**
 * Function for `woocommerce_product_variation_title_attributes_separator` filter-hook.
 * 
 * @param  $string      
 * @param  $\WC_Product 
 *
 * @return 
 */
function wp_kama_woocommerce_product_variation_title_attributes_separator_filter( $string, $\WC_Product ){

	// filter...
	return $string;
}
$string
-
$\WC_Product
-

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

Settings::add_component_settings()
woocommerce_product_variation_title_attributes_separator
Loader::add_component_settings()
woocommerce_product_variation_title_attributes_separator
DataStore::include_extended_info()
Segmenter::set_all_segments()
woocommerce_product_variation_title_attributes_separator
WC_Product_Variation_Data_Store_CPT::generate_product_title()
woocommerce_product_variation_title_attributes_separator
woocommerce/src/Internal/Admin/Settings.php 213
$settings['variationTitleAttributesSeparator'] = apply_filters( 'woocommerce_product_variation_title_attributes_separator', ' - ', new \WC_Product() );
woocommerce/src/Internal/Admin/Loader.php 393
$settings['variationTitleAttributesSeparator'] = apply_filters( 'woocommerce_product_variation_title_attributes_separator', ' - ', new \WC_Product() );
woocommerce/src/Admin/API/Reports/Orders/DataStore.php 361
$separator = apply_filters( 'woocommerce_product_variation_title_attributes_separator', ' - ', $variation );
woocommerce/src/Admin/API/Reports/Segmenter.php 386
$separator    = apply_filters( 'woocommerce_product_variation_title_attributes_separator', ' - ', $segment );
woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php 309
$separator                 = apply_filters( 'woocommerce_product_variation_title_attributes_separator', ' - ', $product );

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

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