Skip to content

Instantly share code, notes, and snippets.

@sunshinephotocart
Created December 6, 2019 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunshinephotocart/f1c7052a61753998e8956344db951b78 to your computer and use it in GitHub Desktop.
Save sunshinephotocart/f1c7052a61753998e8956344db951b78 to your computer and use it in GitHub Desktop.
Stops image view tracking to keep database small
<?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