blog_id; switch_to_blog( $blog_id ); if( sizeof( $option_names ) > 0 ) { foreach( $option_names as $option_name ) { delete_option( $option_name ); plugin_uninstalled(); } } } } restore_current_blog(); } else { if( sizeof( $option_names ) > 0 ) { foreach( $option_names as $option_name ) { delete_option( $option_name ); plugin_uninstalled(); } } } /** * Delete plugin table when uninstalled * * @access public * @return void */ function plugin_uninstalled() { global $wpdb; }