Title: Widget Default Values
Last modified: August 19, 2016

---

# Widget Default Values

 *  [chuckmo](https://wordpress.org/support/users/chuckmo/)
 * (@chuckmo)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/widget-default-values/)
 * I can’t find any documentation for widget development that explains how to create
   default values for widgets that are created by extending the WP-Widget class.
 * How do you set default values for new instances of your widget?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/widget-default-values/#post-1694033)
 * [http://justintadlock.com/archives/2009/05/26/the-complete-guide-to-creating-widgets-in-wordpress-28](http://justintadlock.com/archives/2009/05/26/the-complete-guide-to-creating-widgets-in-wordpress-28)
 *  Thread Starter [chuckmo](https://wordpress.org/support/users/chuckmo/)
 * (@chuckmo)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/widget-default-values/#post-1694050)
 * Thanks for the link, but it looks like that just sets up the default values in
   the form. If the user doesn’t then click the “save” button, those defaults won’t
   be saved and the widget will still be configured with blank values.
 * Is there any way to store default values without having the user save the widget?
   In the method used prior to 2.8, you could put the widget’s defaults in the options
   table upon plugin activation.

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

The topic ‘Widget Default Values’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [chuckmo](https://wordpress.org/support/users/chuckmo/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/widget-default-values/#post-1694050)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
