• Resolved diplatis

    (@diplatis)


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

    (@hinjiriyo)

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

    Thread Starter diplatis

    (@diplatis)

    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?

    Thread Starter diplatis

    (@diplatis)

    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.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    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.