Created
December 6, 2019 17:37
-
-
Save sunshinephotocart/f1c7052a61753998e8956344db951b78 to your computer and use it in GitHub Desktop.
Stops image view tracking to keep database small
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
<?php | |
/* | |
Plugin Name: Sunshine Photo Cart - Analytics (Stop image view tracking) | |
Plugin URI: http://www.sunshinephotocart.com/addon/analytics | |
Description: Stops image view tracking to keep database small | |
Version: 0.1 | |
Author: Sunshine Photo Cart | |
Author URI: http://www.sunshinephotocart.com | |
*/ | |
remove_action( 'wp_head', 'sunshine_analytics_track_image_view' ); | |
remove_action( 'wp_ajax_sunshine_analytics_track_image_view', 'sunshine_analytics_lightbox_track_image_view' ); | |
remove_action( 'wp_ajax_nopriv_sunshine_analytics_track_image_view', 'sunshine_analytics_lightbox_track_image_view' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment