0

I am working on a page where user can create his own unique , personalized week schedule.

Right know all about the schedule is stored in javascript object - scheduleArray.

Here is the site with my work so far

How can I store this javascript object to logged user database in WP?

I need to load it from database on site init, and later when user clicks "SUBMIT" button store it back to database.

Could you provide me any ideas, tutorials from which I can start on ?

Thanks!

1 Answer 1

1

As one way - add field (maybe something like next https://tommcfarlin.com/add-custom-user-meta-during-registration/) to user profile and store JSON here.

When yser submit form - you can create hidden field with this (by "onsubmit" event) and write to user field by server-side script.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.