woocommerce_apply_user_tracking

woocommerce_apply_user_tracking

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_apply_user_tracking') is found 1 times:

  • /includes/tracks/class-wc-site-tracking.php line 27
    		 * `woocommerce_apply_user_tracking` instead.
    		 *
    		 * @since 3.6.0
    		 */
    		if ( ! apply_filters( 'woocommerce_apply_user_tracking', true ) || ! apply_filters( 'woocommerce_apply_tracking', true ) ) {
    			return false;
    		}
    
    		// Check if tracking is actively being opted into.
    		$is_obw_opting_in = isset( $_POST['wc_tracker_checkbox'] ) && 'yes' === sanitize_text_field( $_POST['wc_tracker_checkbox'] ); // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput