Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the easy-digital-downloads domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/runcloud/webapps/qsmstg-sep25/wp-includes/functions.php on line 6121

Deprecated: Creation of dynamic property EDD_User_History::$plugin_file is deprecated in /home/runcloud/webapps/qsmstg-sep25/wp-content/plugins/edd-user-history/edd-user-history.php on line 88

Deprecated: Creation of dynamic property EDD_User_History::$basename is deprecated in /home/runcloud/webapps/qsmstg-sep25/wp-content/plugins/edd-user-history/edd-user-history.php on line 89

Deprecated: Creation of dynamic property EDD_User_History::$directory_path is deprecated in /home/runcloud/webapps/qsmstg-sep25/wp-content/plugins/edd-user-history/edd-user-history.php on line 90

Deprecated: Creation of dynamic property EDD_User_History::$directory_url is deprecated in /home/runcloud/webapps/qsmstg-sep25/wp-content/plugins/edd-user-history/edd-user-history.php on line 91

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the edd-recurring domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/runcloud/webapps/qsmstg-sep25/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the edd-recurring domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/runcloud/webapps/qsmstg-sep25/wp-includes/functions.php on line 6121
Creating A New Addons Settings Tab - Quiz And Survey Master

🛍️ Save 15% on orders over $99

There will probably be times that you need to add settings that affect all quizzes. Adding a tab in the Addons Settings page is the perfect spot to list your new settings. Creating a new tab is almost identical to creating a new tab on the quiz settings page.

First, we add a function to the ‘plugins_loaded’ hook that will add your new tab. We will call this function ‘add_new_addons_tab’. Inside, we will call the global $mlwQuizMasterNext. Then, we will use the plugin helper function ‘register_addon_settings_tab’ to create out tab. This function has two parameters.

$title is the string for the tab and $function is your function to display the contents. From here, you will want to create a function to display the contents. So, utilizing this function, we will create a new tab:

function add_new_addons_tab()
{
	global $mlwQuizMasterNext;
	$mlwQuizMasterNext->pluginHelper->register_addon_settings_tab(__("My Addon's Settings", 'quiz-master-next'), "my_addon_settings_tab_content");
}
add_action("plugins_loaded", 'add_new_addons_tab');
function my_addon_settings_tab_content
{
    //Your content goes here!
}