get_col( "SELECT blog_id FROM $wpdb->blogs" ); $original_blog_id = get_current_blog_id(); foreach ( $blog_ids as $blog_id ) { switch_to_blog( $blog_id ); wpmem_uninstall_options(); } switch_to_blog( $original_blog_id ); } else { wpmem_uninstall_options(); } } /** * Compartmentalizes uninstall * * @since 2.9.3 */ function wpmem_uninstall_options() { delete_option( 'wpmembers_settings' ); delete_option( 'wpmembers_fields' ); delete_option( 'wpmembers_dialogs' ); delete_option( 'wpmembers_captcha' ); delete_option( 'wpmembers_tos' ); delete_option( 'wpmembers_export' ); delete_option( 'wpmembers_utfields' ); delete_option( 'wpmembers_email_newreg' ); delete_option( 'wpmembers_email_newmod' ); delete_option( 'wpmembers_email_appmod' ); delete_option( 'wpmembers_email_repass' ); delete_option( 'wpmembers_email_footer' ); delete_option( 'wpmembers_email_notify' ); delete_option( 'wpmembers_email_wpfrom' ); delete_option( 'wpmembers_email_wpname' ); delete_option( 'wpmembers_email_getuser' ); delete_option( 'widget_wpmemwidget' ); // For pre-3.x settings that may remain. delete_option( 'wpmembers_msurl' ); delete_option( 'wpmembers_regurl' ); delete_option( 'wpmembers_logurl' ); delete_option( 'wpmembers_cssurl' ); delete_option( 'wpmembers_style' ); delete_option( 'wpmembers_autoex' ); delete_option( 'wpmembers_attrib' ); } // End of file.