Last active
December 22, 2021 06:35
-
-
Save mohammadYousefiDev/156617460d2279975f8b15a93072c29e to your computer and use it in GitHub Desktop.
Disable stats.wp.com request in woocommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in functions.php | |
function DV_deactive_jetpack() { | |
wp_dequeue_script( 'devicepx' ); | |
wp_dequeue_script( 'woo-tracks' ); | |
} | |
add_action( 'admin_enqueue_scripts', 'DV_deactive_jetpack' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment