run(); } run_google_analytics_analyticator(); /** * Create the Object of Remote Notification. * * @since 1.0.0 */ if (!class_exists('TAV_Remote_Notification_Client')) { require( ANALYTICATOR__GA_ROOT_PATH . 'includes/class-remote-notification-client.php' ); } $notification = new TAV_Remote_Notification_Client( 2, '00d6c68fdbcf2ecb', 'http://analyticator.com?post_type=notification' ); function _analyticator_google_analytics_uninstallation(){ $tracking = get_option( 'analyticator_com_activation_status' ); if ( $tracking !== false ) { $user = wp_get_current_user(); $url = "http://analyticator.com/"; $body = array( 'email' => $user->user_email, 'website' => get_site_url(), 'action' => 'Uninstall', 'reason' => '', 'reason_detail' => '', 'blog_language' => get_bloginfo( 'language' ), 'wordpress_version' => get_bloginfo( 'version' ), 'plugin_version' => ANALYTICATOR__GA_PLUGIN_VER, 'plugin_name' => 'Google Analytics by Analyticator Free', ); $args = array( 'method' => 'POST', 'timeout' => 5, 'httpversion' => '1.0', 'blocking' => false, 'headers' => array(), 'body' => $body, ); $return = wp_remote_post( $url, $args ); return true; } } register_uninstall_hook(__FILE__, '_analyticator_google_analytics_uninstallation' );