wc_order_attribution_allow_tracking хук-фильтрWC 8.5.0

Filter to allow tracking.

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

add_filter( 'wc_order_attribution_allow_tracking', 'wp_kama_wc_order_attribution_allow_tracking_filter' );

/**
 * Function for `wc_order_attribution_allow_tracking` filter-hook.
 * 
 * @param bool $allow_tracking True to allow tracking, false to disable.
 *
 * @return bool
 */
function wp_kama_wc_order_attribution_allow_tracking_filter( $allow_tracking ){
	// filter...
	return $allow_tracking;
}
$allow_tracking(true|false)
True to allow tracking, false to disable.

Список изменений

С версии 8.5.0 Введена.

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

OrderAttributionController::enqueue_scripts_and_styles()
wc_order_attribution_allow_tracking
woocommerce/src/Internal/Orders/OrderAttributionController.php 327
$allow_tracking = wc_bool_to_string( apply_filters( 'wc_order_attribution_allow_tracking', true ) );

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

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