-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide "Import Demo Data" button after importing #32
Comments
Hi, Why you want hide import button ? Sometimes demo importer not works as well, then user need to re-import content. This is happened for my clients multiple times. Because wp issue or internet speed. I think is better if you check, if imported before then just show a message that once demo imported. For this purpose you can set new option for checking demo importer button, example: if ( get_option( 'is_demo_imported' ) ) {
// echo 'This demo was imported before.';
} If you're importing demo(s) via ajax process, so you can easily update_option after each imports. Regards |
Thanks a lot for reply. yes i think its the better way to handle this. My concern only was to make its process more simple & clean. Thanks again. |
Hi, first of all i would to say big thanks to you for making our life much easier by providing this very useful function. It really works like charm, but I'm wandering if it can set to hide after importing content successfully?
The text was updated successfully, but these errors were encountered: