MemberPress does not currently have a ‘reset’ button that will erase all data found in MemberPress. However, if you need to reset the Subscriptions, Transactions, Members, and settings data you can run the following queries *:
TRUNCATE TABLE wp_mepr_subscriptions;
TRUNCATE TABLE wp_mepr_transactions;
TRUNCATE TABLE wp_mepr_events;
TRUNCATE TABLE wp_mepr_members;
TRUNCATE TABLE wp_mepr_jobs;
TRUNCATE TABLE wp_mepr_rule_access_conditions;
TRUNCATE TABLE wp_mepr_tax_rates;
TRUNCATE TABLE wp_mepr_tax_rate_locations;
Dann können Sie die folgenden Schritte ausführen (sie MUSS in dieser Reihenfolge ausgeführt werden):
DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('memberpresscoupon','memberpressgroup','memberpressproduct','mp-reminder', 'memberpressrule'));
DELETE FROM wp_posts WHERE post_type IN ('memberpresscoupon','memberpressgroup','memberpressproduct','mp-reminder', 'memberpressrule');
DELETE FROM wp_options WHERE option_name LIKE '%mepr%';
Außerdem sollten Sie Folgendes ausführen, wenn Sie das Add-on Unternehmenskonten installiert haben:
TRUNCATE TABLE wp_mepr_corporate_accounts;
Wenn Sie MemberPress-Kurse haben, sollten Sie die folgende Abfrage ausführen:
TRUNCATE TABLE wp_mpcs_answers;
TRUNCATE TABLE wp_mpcs_attempts;
TRUNCATE TABLE wp_mpcs_questions;
TRUNCATE TABLE wp_mpcs_sections;
TRUNCATE TABLE wp_mpcs_user_progress;
und führen Sie dann diesen aus:
DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('mpcs-course','mpcs-lesson','mpcs-quiz'));
DELETE FROM wp_posts WHERE post_type IN ('mpcs-course','mpcs-lesson','mpcs-quiz');
Für das PDF Invoices Add-on sollten Sie die folgende Abfrage ausführen:
TRUNCATE TABLE wp_mpdf_invoice_numbers;
TRUNCATE TABLE wp_mpdf_credit_notes;
Für das Add-on Downloads sollten Sie die folgende Abfrage ausführen:
TRUNCATE TABLE wp_mpdl_file_downloads;
TRUNCATE TABLE wp_mpdl_file_stats;