Support » Plugin: Widget Visibility Time Scheduler » 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 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    That is a bit complex. Why do you want to edit with a function?

    I want to edit the options through a custom JSON API endpoint.
    Maybe you should implement this in a future release?

    Plugin Author Martin Stehle

    (@hinjiriyo)

    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?

    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 Author Martin Stehle

    (@hinjiriyo)

    I will ponder about that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.