Answer the question
In order to leave comments, you need to log in
Clearing all wordpress bases on import?
Good afternoon. I created my own theme and for it to work correctly, you need to import data. Unloaded in CML format by regular means (I also tried plugins).
When installing an empty WordPress distribution, it is installed with data (posts, comments, etc.). Is it possible to delete this data during import? Or when the theme is activated, can they be deleted? Or maybe it is possible to install wordpress without any data at all?
And the second question. When re-importing data, all menus, themes, etc. duplicated, which is also not correct for my situation. Ideally, when importing, clean WordPress completely. It is possible to add some hook to replace imports and force cleaning
Answer the question
In order to leave comments, you need to log in
In general, I downloaded the sources https://github.com/FrankM1/radium-one-click-demo-i...
I corrected it for myself, added another "clear data" button, by clicking on which I cleared the database by hand by executing the following script:
TRUNCATE wp_commentmeta;
TRUNCATE wp_comments;
TRUNCATE wp_links;
TRUNCATE wp_postmeta;
TRUNCATE wp_posts;
TRUNCATE wp_termmeta;
TRUNCATE wp_terms;
TRUNCATE wp_term_relationships;
TRUNCATE wp_term_taxonomy;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question