30 lines
681 B
PHP
30 lines
681 B
PHP
|
|
<?php
|
||
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
||
|
|
exit;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Adds the Options tab to the Quiz Settings page.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
* @since 6.2.0
|
||
|
|
*/
|
||
|
|
function qsm_settings_options_tab() {
|
||
|
|
global $mlwQuizMasterNext;
|
||
|
|
$mlwQuizMasterNext->pluginHelper->register_quiz_settings_tabs( __( 'Options', 'quiz-master-next' ), 'qsm_options_option_tab_content' );
|
||
|
|
}
|
||
|
|
add_action( 'plugins_loaded', 'qsm_settings_options_tab', 5 );
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Adds the options content to the Quiz Settings page.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
* @since 6.2.0
|
||
|
|
*/
|
||
|
|
function qsm_options_option_tab_content() {
|
||
|
|
global $wpdb;
|
||
|
|
global $mlwQuizMasterNext;
|
||
|
|
$mlwQuizMasterNext->pluginHelper->generate_settings_section( 'quiz_options' );
|
||
|
|
}
|
||
|
|
?>
|