Title: Edit options through function &#8211; Pro Version
Last modified: November 24, 2019

---

# Edit options through function – Pro Version

 *  Resolved [diplatis](https://wordpress.org/support/users/diplatis/)
 * (@diplatis)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/edit-options-through-function-pro-version/)
 * Hi,
 * I’m using the pro version of the plugin and I want to edit the visibility options
   of a widget through a function. How can I achieve this?
    Thanks

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

 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/edit-options-through-function-pro-version/#post-12169387)
 * That is a bit complex. Why do you want to edit with a function?
 *  Thread Starter [diplatis](https://wordpress.org/support/users/diplatis/)
 * (@diplatis)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/edit-options-through-function-pro-version/#post-12170117)
 * I want to edit the options through a custom JSON API endpoint.
    Maybe you should
   implement this in a future release?
 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/edit-options-through-function-pro-version/#post-12172193)
 * At least in the plugins’s file `/widget-visibility-time-scheduler/admin/class-
   hinjiwvts-admin.php` there is the public method `widget_update()`. Is that sufficient
   for the change of the settings via a function?
 *  Thread Starter [diplatis](https://wordpress.org/support/users/diplatis/)
 * (@diplatis)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/edit-options-through-function-pro-version/#post-12172323)
 * I don’t think it’s useful because it relies on AJAX, I need something like this:
   
   widget_update($widget_instance_id, $array_of_options)
 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/edit-options-through-function-pro-version/#post-12172750)
 * I will ponder about that.
 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/edit-options-through-function-pro-version/#post-12351122)
 * Sorry, I didn’t find any way to achieve this.

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

The topic ‘Edit options through function – Pro Version’ is closed to new replies.

 * ![](https://ps.w.org/widget-visibility-time-scheduler/assets/icon-256x256.png?
   rev=2478534)
 * [Widget Visibility Time Scheduler](https://wordpress.org/plugins/widget-visibility-time-scheduler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-visibility-time-scheduler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-visibility-time-scheduler/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-visibility-time-scheduler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-visibility-time-scheduler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-visibility-time-scheduler/reviews/)

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/edit-options-through-function-pro-version/#post-12351122)
 * Status: resolved