Title: update_option function not working
Last modified: August 31, 2016

---

# update_option function not working

 *  [hallowcard](https://wordpress.org/support/users/hallowcard/)
 * (@hallowcard)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/update_option-function-not-working/)
 * Hi Guys,
 * Please help me with the function not working inside a callback function for register_setting.
 * ex:
 * register_setting(‘set’, ‘set2’, ‘sanitize’);
 * function sanitize($input){
    if(input){ update_option(‘theme_option’,$input); }
 * If adding that it will never worked and on my experience xampp and wamp are crashing.

The topic ‘update_option function not working’ is closed to new replies.

## Tags

 * [" theme settings"](https://wordpress.org/support/topic-tag/theme-settings/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [hallowcard](https://wordpress.org/support/users/hallowcard/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/update_option-function-not-working/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
