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?