Title: Interaction with the plugin JS
Last modified: December 24, 2016

---

# Interaction with the plugin JS

 *  Resolved [joeyblack](https://wordpress.org/support/users/joeyblack/)
 * (@joeyblack)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/interaction-with-the-plugin-js/)
 * Is it possible to interact with the plugin JavaScript? I will explain what I 
   mean.
 * Imagine, I’m trying to customize the display of a quiz. I’m adding some text,
   buttons, links to the questions etc. I can do this via PHP. But when a quiz starts,
   it works via JavaScript. How can I get (listen) to its variables, i.e. “current
   question ID”, “current question text”, “current quiz state” etc.? Maybe, there
   is a possibility to run custom callbacks “onQuizQuestionChanged” or “onQuizStateChanged”
   or something like this?
 * I understand, it could be impossible. Then please confirm this.
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [hienphan](https://wordpress.org/support/users/hienphan/)
 * (@hienphan)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/interaction-with-the-plugin-js/#post-8592465)
 * Hi,
 * It’s impossible for current LP.
 * Regards,
 * Hien Phan.
 *  Thread Starter [joeyblack](https://wordpress.org/support/users/joeyblack/)
 * (@joeyblack)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/interaction-with-the-plugin-js/#post-8593314)
 * Thanks so much.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Interaction with the plugin JS’ is closed to new replies.

 * ![](https://ps.w.org/learnpress/assets/icon-256x256.gif?rev=3254420)
 * [LearnPress - WordPress LMS Plugin for Create and Sell Online Courses](https://wordpress.org/plugins/learnpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learnpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learnpress/)
 * [Active Topics](https://wordpress.org/support/plugin/learnpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learnpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learnpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [joeyblack](https://wordpress.org/support/users/joeyblack/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/interaction-with-the-plugin-js/#post-8593314)
 * Status: resolved