Our QMN API – The Plugin Helper Class

All of the API for Quiz and Survey Master is built into a wrapper class called Plugin Helper. This class is stored in the main plugin class. To access the plugin helper class, you can use the class like this:

global $mlwQuizMasterNext;
$mlwQuizMasterNext->pluginHelper->register_question_type();

First, you have to retrieve the main plugin class which is stored in $mlwQuizMasterNext. From there you can access the api with $mlwQuizMasterNext->pluginHelper.  The plugin helper class is created in the qmn_helper.php file in the includes folder.

Now, let’s take a look at how to create your own template variables.