Title: Saving values from input array wp widget plugin
Last modified: August 20, 2016

---

# Saving values from input array wp widget plugin

 *  [kab2512](https://wordpress.org/support/users/kab2512/)
 * (@kab2512)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/saving-values-from-input-array-wp-widget-plugin/)
 * I have a question about how to store/save input arrays on function `function 
   update($instance, $old_instance) {
    }
 *     ```
       My input field looks like this
       ```
   
 * <input type=”text” id=”image_url” name=”image_url[]” value=”” />
 *     ```
       Normally you save it like this
       ```
   
 * $instance[‘image_url’] = $new_instance[‘image_url’];
    ` But how do i save it 
   if i want to make use of input array?

The topic ‘Saving values from input array wp widget plugin’ is closed to new replies.

## Tags

 * [widget](https://wordpress.org/support/topic-tag/widget/)
 * [wp-plugin](https://wordpress.org/support/topic-tag/wp-plugin/)

 * 0 replies
 * 1 participant
 * Last reply from: [kab2512](https://wordpress.org/support/users/kab2512/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/saving-values-from-input-array-wp-widget-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
