Function Reference: geodir_claim_listing_uninstall
Summary
This function has not been documented yet.
Source Code
function geodir_claim_listing_uninstall(){ if ( ! isset($_REQUEST['verify-delete-adon']) ) { $plugins = isset( $_REQUEST['checked'] ) ? (array) $_REQUEST['checked'] : array(); //$_POST = from the plugin form; $_GET = from the FTP details screen. wp_enqueue_script('jquery'); if (!defined('GD_TESTING_MODE')) { require_once(ABSPATH . 'wp-admin/admin-header.php'); } printf( 'query("UPDATE ".$table." SET claimed=''"); } } $wpdb->query("DROP TABLE ".$plugin_prefix.'claim'); /* --- delete notification options --- */ $notifications = geodir_claim_notifications(); if(!empty($notifications)){ foreach($notifications as $value){ if(isset($value['id']) && $value['id'] != '') delete_option($value['id'], ''); } } /* --- delete default options --- */ $default_options = geodir_claim_default_options(); if(!empty($default_options)){ foreach($default_options as $value){ if(isset($value['id']) && $value['id'] != '') delete_option($value['id'], ''); } } } }%s
' ,__( 'Warning!!' , 'geodirclaim') ); printf( '%s
%s
%s %s.' , __('You are about to delete a Geodirectory Addon which has important option and custom data associated to it.' ,'geodirclaim') ,__('Deleting this and activating another version, will be treated as a new installation of plugin, so all the data will be lost.', 'geodirclaim'), __('If you have any problem in upgrading the plugin please contact Geodirectory', 'geodirclaim') , __('support' ,'geodirclaim') ) ; ?>