Title: update_options
Last modified: August 18, 2016

---

# update_options

 *  [nateomedia](https://wordpress.org/support/users/nateomedia/)
 * (@nateomedia)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/update_options/)
 * In the plugin I’m writing, I have an admin option that should be able to take
   a string enclosed in quotation marks. However, the quotation marks are being 
   turned into backslashes. Obviously, it’s some sort of escape character issue,
   but even if I insert an backslash before the quotation mark, it still gets removed.
 * I’m assuming this has something to do with how update_options works. I’ve briefly
   looked at how the function works, but I was hoping someone might of encountered
   this before and know how to circumvent it.
 * Suggestions?

Viewing 1 replies (of 1 total)

 *  [Mark Jaquith](https://wordpress.org/support/users/markjaquith/)
 * (@markjaquith)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/update_options/#post-400403)
 * GPC is automatically slashed by WP. Use `stripslashes()` before updating the 
   option, because `update_option()` will try to add slashes again.

Viewing 1 replies (of 1 total)

The topic ‘update_options’ is closed to new replies.

## Tags

 * [backslash](https://wordpress.org/support/topic-tag/backslash/)
 * [character](https://wordpress.org/support/topic-tag/character/)
 * [mark](https://wordpress.org/support/topic-tag/mark/)
 * [Quotation](https://wordpress.org/support/topic-tag/quotation/)
 * [update_options](https://wordpress.org/support/topic-tag/update_options/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mark Jaquith](https://wordpress.org/support/users/markjaquith/)
 * Last activity: [19 years, 12 months ago](https://wordpress.org/support/topic/update_options/#post-400403)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
