How to write the code for manually saving and binding the options in Theme Customizer?

403 posts Keep Walking
  • Has been a member for 3-4 years
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Bought between 100 and 499 items
  • Referred between 100 and 199 users
  • Exclusive Author
UXbarn says


I’m trying to do one thing in Theme Customizer which is to save and load the options manually using the button in one custom control.

Supposed I have a custom control that contains a textarea and a button. The purpose of this control would be like allowing user to enter the input into the textarea then click the button and that input will be saved into the database. Right after that, the entire page is forced to reload (or is there any way to implement AJAX here?) for binding that saved input into any other controls for further selection.

Do you have any advice on this?

Thanks! Paul