wc_order_attribution_allow_tracking
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
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 ) );