[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/options/privacy/erasers/ -> tracking.php (source)

   1  <?php /* tracking */
   2  if ( class_exists( 'MailPress' ) && class_exists( 'MailPress_tracking' ) )
   3  {
   4  class MP_WP_Privacy_eraser_tracking extends MP_WP_privacy_eraser_
   5  {
   6      const per_page = 100;
   7  
   8      var $priority = 48;
   9  
  10  	function eraser( $email, $page = 1 )
  11      {
  12          global $wpdb;
  13  
  14          $mp_user = $this->get_user( $email );
  15          if ( !$mp_user ) return $this->erase;
  16  
  17          /*  */
  18  
  19          // some clean up
  20          $wpdb->query( $wpdb->prepare( "DELETE FROM $wpdb->mp_tracks WHERE user_id = %d AND mail_id NOT IN ( SELECT id FROM $wpdb->mp_mails ) ;", $mp_user->id ) );
  21  
  22          return $this->erase;
  23      }
  24  }
  25  new MP_WP_Privacy_eraser_tracking( __( 'MailPress tracks eraser', 'MailPress' ) );
  26  }


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1