0

How many WordPress developer are working with live customizer for controlling theme settings? Do you people allow users to import and export theme settings? Any examples or tutorials would be very helpful.

1

1 Answer 1

1

I recently built this for one of my themes... Export: https://github.com/wpmu/maera/blob/7492f7b90544c792a3eb752d8552674882e1c1cd/lib/admin-page.php#L105-L117 Import: https://github.com/wpmu/maera/blob/7492f7b90544c792a3eb752d8552674882e1c1cd/lib/admin-page.php#L124

That file actually contains an entire admin page with the export data and import textarea so you could simply get that and modify it to suit your own needs.

I hope that helps!

1
  • Thanks for your answer. I will look into it to implement in my theme.
    – xw48hf
    Commented Sep 27, 2014 at 18:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.