Title: Theme customizer preview logical changes
Last modified: August 30, 2016

---

# Theme customizer preview logical changes

 *  [ScorchD](https://wordpress.org/support/users/scorchd/)
 * (@scorchd)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/theme-customizer-preview-logical-changes/)
 * Hi,
    I have been trying to create way of refreshing the preview window using .
   previewer.refresh(); which works perfectly but I would also like to be able to
   automatically save specific or all values back to the database.
 * I have several controls which make logical structural changes to the template
   in php, because these are not sent back to the database they can not be viewed
   in the previewer without first being saved so would like to trigger a save action
   before triggering the refresh command.
 * Obviously postMessage is not what I am looking for here as I dont want to have
   to insert these changes via JS but a save and refresh would do the job.
 * Kind regards

The topic ‘Theme customizer preview logical changes’ is closed to new replies.

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 0 replies
 * 1 participant
 * Last reply from: [ScorchD](https://wordpress.org/support/users/scorchd/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/theme-customizer-preview-logical-changes/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
