wc_order_attribution_allow_tracking filter-hookWC 8.5.0

Filter to allow tracking.

Usage

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.

Changelog

Since 8.5.0 Introduced.

Where the hook is called

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

Where the hook is used in WooCommerce

Usage not found.