Title: update_option issues
Last modified: August 20, 2016

---

# update_option issues

 *  [skustes](https://wordpress.org/support/users/skustes/)
 * (@skustes)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/update_option-issues/)
 * I’ve come across an odd issue with update_option. I’m defining the option name
   in one place and using update_option in multiple areas.
 * When I run
    $plm_options_update = update_option( $this->plm_option , $ary_options);
   I end up with an option_name with the correct value from $this->plm_option, but
   the option_value is empty. I’ve dumped $ary_options immediately before the update
   and the data is valid.
 * However, if I replace $this->plm_option with the actual text, it works…most of
   the time. Most times the array is stored properly, sometimes I get a blank value.
   The array is always populated prior to update_option. I’ve dumped it for dozens
   of attempted updates, so it’s not a lack of data on the update_option calls that
   don’t work.
 * Has anyone else run across an issue like this with update_option? It seems to
   be primarily when I store the option_name elsewhere and call it in update_options.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [skustes](https://wordpress.org/support/users/skustes/)
 * (@skustes)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/update_option-issues/#post-3392824)
 * Another thing I thought of that’s weird here is that it has worked exactly as
   written, but now it’s quit working.
 *  [vaibviad](https://wordpress.org/support/users/vaibviad/)
 * (@vaibviad)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/update_option-issues/#post-3393206)
 * [http://stackoverflow.com/questions/17759814/saving-data-in-theme-options-page-wordpress](http://stackoverflow.com/questions/17759814/saving-data-in-theme-options-page-wordpress)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘update_option issues’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [vaibviad](https://wordpress.org/support/users/vaibviad/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/update_option-issues/#post-3393206)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
