Example #1
0
function s2_deleteReadyGraph()
{
    $app_id = get_option('readygraph_application_id');
    wp_remote_get("http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id={$app_id}");
    s2_delete_rg_options();
    $dir = plugin_dir_path(__FILE__);
    s2_rrmdir($dir);
}
Example #2
0
 function s2_readygraph_plugin_deactivate()
 {
     $app_id = get_option('readygraph_application_id');
     update_option('readygraph_deleted', 'false');
     wp_remote_get("http://readygraph.com/api/v1/tracking?event=subscribe2_plugin_uninstall&app_id={$app_id}");
     s2_delete_rg_options();
 }