Title: Setting Initial Option Values
Last modified: August 19, 2016

---

# Setting Initial Option Values

 *  [husar](https://wordpress.org/support/users/husar/)
 * (@husar)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/setting-initial-option-values/)
 * I have created my first plugin and very excited to release it this weekend. The
   final thing I want to do is to add defaut values to the Options I have created.
 * So if I understand correctly when the plugin does the get_option for the first
   time and they do not exist it creates them. That is what is happening for me 
   anyway.
 * If they are empty, as they would be for the first time, I want to set a default
   value in each. Can someone point me to a good resource? I tried lookign up to
   see if set_option was possible do I don’t think so.
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * (@mindshare)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/setting-initial-option-values/#post-716273)
 * It’s add_option.
    [http://codex.wordpress.org/Function_Reference/add_option](http://codex.wordpress.org/Function_Reference/add_option)

Viewing 1 replies (of 1 total)

The topic ‘Setting Initial Option Values’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Mindshare Labs, Inc.](https://wordpress.org/support/users/mindshare/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/setting-initial-option-values/#post-716273)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
