WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Hide Start Quiz Button when user is not logged in

[Resolved] Hide Start Quiz Button when user is not logged in

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think that it is in WpProQuiz_View_FrontQuiz.php

    I think that I need to put the code

    <?php if ( is_user_logged_in() ) { ... } ?>

    somewhere related to:

    <div align="center">
    
    				<input class="wpProQuiz_button" type="button" value="<?php _e('Start quiz', 'wp-pro-quiz'); ?>" name="startQuiz">
    			</div>

    But I don’t know how exactly.

    The code is:

    <?php if (is_user_logged_in()) { ?>
    
    	<p><div align="center">
    
    				<input class="wpProQuiz_button" type="button" value="<?php _e('Start quiz', 'wp-pro-quiz'); ?>" name="startQuiz">
    			</div></p>
    <?php } else { // not logged in ?>
    <p>&nbsp;</p>
    
    <p>&nbsp;</p>
    
    <?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Hide Start Quiz Button when user is not logged in’ is closed to new replies.