pluginHelper->get_settings_tabs(); $active_tab = strtolower( str_replace( ' ', '-', isset( $_GET[ 'tab' ] ) ? stripslashes( $_GET[ 'tab' ] ) : __( 'Questions', 'quiz-master-next' ) ) ); // Prepares quiz. $quiz_id = isset( $_GET['quiz_id'] ) ? intval( $_GET['quiz_id'] ) : 0; if ( isset( $_GET['quiz_id'] ) ) { $quiz_name = $wpdb->get_var( $wpdb->prepare( "SELECT quiz_name FROM {$wpdb->prefix}mlw_quizzes WHERE quiz_id=%d LIMIT 1", $quiz_id ) ); $mlwQuizMasterNext->pluginHelper->prepare_quiz( $quiz_id ); } wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'jquery-ui-core' ); wp_enqueue_script( 'jquery-ui-dialog' ); wp_enqueue_script( 'jquery-ui-button' ); wp_enqueue_script( 'jquery-ui-datepicker' ); wp_enqueue_script( 'jquery-ui-tabs' ); wp_enqueue_script( 'jquery-effects-blind' ); wp_enqueue_script( 'jquery-effects-explode' ); wp_enqueue_script( 'qmn_admin_js', plugins_url( '../../js/admin.js', __FILE__ ), array( 'backbone', 'underscore', 'wp-util' ), $mlwQuizMasterNext->version, true ); wp_enqueue_script( 'micromodal_script', plugins_url( '../../js/micromodal.min.js', __FILE__ ) ); wp_enqueue_style( 'qsm_admin_style', plugins_url( '../../css/qsm-admin.css', __FILE__ ), array(), $mlwQuizMasterNext->version ); wp_enqueue_style( 'qmn_jquery_redmond_theme', plugins_url( '../../css/jquery-ui.css', __FILE__ ) ); wp_enqueue_script( 'math_jax', '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML' ); // Edit Quiz Name. if ( isset( $_POST['qsm_edit_name_quiz_nonce'] ) && wp_verify_nonce( $_POST['qsm_edit_name_quiz_nonce'], 'qsm_edit_name_quiz' ) ) { //$quiz_id = intval( $_POST['edit_quiz_id'] ); $quiz_name = sanitize_text_field( htmlspecialchars( stripslashes( $_POST['edit_quiz_name'] ), ENT_QUOTES ) ); $mlwQuizMasterNext->quizCreator->edit_quiz_name( $quiz_id, $quiz_name ); } ?>

Edit Name 1, 'post_type' => 'quiz', 'meta_query' => array( array( 'key' => 'quiz_id', 'value' => $quiz_id, 'compare' => '=', ), ), ); $the_query = new WP_Query($args); // The Loop $post_permalink = ''; if ($the_query->have_posts()) { while ($the_query->have_posts()) { $the_query->the_post(); $post_permalink = get_the_permalink(get_the_ID()); } /* Restore original Post Data */ wp_reset_postdata(); } ?>

alertManager->showAlerts(); ?>