C
C
Cyril2018-04-24 12:10:40
WordPress
Cyril, 2018-04-24 12:10:40

Saving settings (options) in WordPress as presets?

For example, there is a form with settings that are stored in the database, how best to save the settings as presets, something like settings-1 and settings-2, etc.? I will be grateful for an example of implementation if there is or maybe there are considerations if someone came across. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
E, 2018-04-24
@aylo

update_option()
write anything there, even an array.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question