Load a plugins options during an AJAX callback (2 posts)

  1. danc81
    Posted 5 years ago #


    I'm developing my first WordPress widget and it's looking really good so far but I've run into a problem that I can't find the answer to. I have a few simple options set in the widget config which I can acces in my WP_Widget subclass using the $instance variable inside the widget class function but I have now registers an AJAX callback handler function using wp_ajax_nopriv and I need to access some of the widgets options to be able to give correct feedback to the AJAX request.

    How can I access the widget options from the callback function?


  2. danc81
    Posted 5 years ago #

    Anybody? Still haven't found out how to load the widget options but I must be missing something obvious?

Topic Closed

This topic has been closed to new replies.

About this Topic