File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
/home/pharmacy/www/wp-content/plugins/sendpress/uninstall.php
<?php
/**
 * SendPress Uninstall Scripts
 *
 *
 * @package  SendPress
 * @author   Josh Lyford
 * @since  0.8.6
 */

//if uninstall not called from WordPress exit
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ){
	exit();
}

global $wpdb, $wp_roles;

define( 'SENDPRESS_VERSION', '0.9.6.3' );
//Remove settings
/*
delete_option( 'sendpress_options' );
delete_option( 'sendpress_db_version' );


require_once plugin_dir_path( __FILE__ )  . 'classes/class-sendpress-pro-manager.php';
SendPress_Pro_Manager::try_deactivate_key();



$sp_post_types = array( 'sp_newsletters', 'sp_report', 'sptemplates', 'sendpress_list' );
foreach ( $sp_post_types as $post_type ) {

	$items = get_posts( array( 'post_type' => $post_type, 'numberposts' => -1, 'fields' => 'ids' ) );

	if ( $items ) {
		foreach ( $items as $item ) {
			delete_transient('sendpress_report_subject_' . $item );
			delete_transient('sendpress_report_body_html_' . $item );
			wp_delete_post( $item, true);
		}
	}
}

//Drop All DB tables
//This could use an updated for Multisite
require_once plugin_dir_path( __FILE__ )  . 'classes/class-sendpress-db-tables.php';
SendPress_DB_Tables::remove_all_data();
*/