woocommerce_apply_user_tracking
Don't track users if a filter has been applied to turn it off. woocommerce_apply_tracking will be deprecated. Please use woocommerce_apply_user_tracking
Использование
add_filter( 'woocommerce_apply_user_tracking', 'wp_kama_woocommerce_apply_user_tracking_filter' ); /** * Function for `woocommerce_apply_user_tracking` filter-hook. * * @param $true * * @return */ function wp_kama_woocommerce_apply_user_tracking_filter( $true ){ // filter... return $true; }
- $true
- -
Список изменений
С версии 3.6.0 | Введена. |
Где вызывается хук
woocommerce_apply_user_tracking
woocommerce/includes/tracks/class-wc-site-tracking.php 27
if ( ! apply_filters( 'woocommerce_apply_user_tracking', true ) || ! apply_filters( 'woocommerce_apply_tracking', true ) ) {