Skip to content
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

Open
umairrazzaq opened this issue May 8, 2016 · 2 comments
Open

Hide "Import Demo Data" button after importing #32

umairrazzaq opened this issue May 8, 2016 · 2 comments

Comments

@umairrazzaq
Copy link

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?

@Codevz
Copy link

Codevz commented May 9, 2016

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

@umairrazzaq
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants