function rpr_deleteReadyGraph() { $app_id = get_option('readygraph_application_id'); wp_remote_get("http://readygraph.com/api/v1/tracking?event=uninstall_readygraph&app_id={$app_id}"); rpr_delete_rg_options(); $dir = plugin_dir_path(__FILE__); rpr_rrmdir($dir); }
function rpr_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=register_plug_redux_plugin_uninstall&app_id={$app_id}"); rpr_delete_rg_options(); }