WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. danc81
    Member
    Posted 3 years ago #

    Hi,

    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?

    Thanks,
    Dan

  2. danc81
    Member
    Posted 3 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