文件操作 - content.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/tutor/templates/single/quiz/content.php
编辑文件内容
<?php /** * Quiz content * * @package Tutor\Templates * @subpackage Single\Quiz * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 1.4.3 */ global $post; $currentPost = $post; //phpcs:ignore $quiz_id = get_the_ID(); $previous_attempts = tutor_utils()->quiz_attempts(); $attempted_count = is_array( $previous_attempts ) ? count( $previous_attempts ) : 0; $attempts_allowed = tutor_utils()->get_quiz_option( $quiz_id, 'attempts_allowed', 0 ); $attempt_remaining = $attempts_allowed - $attempted_count; if ( 0 !== $attempted_count ) { ?> <div id="tutor-quiz-content" class="tutor-quiz-content tutor-quiz-content-<?php the_ID(); ?>"> <?php do_action( 'tutor_quiz/content/before', $quiz_id ); do_action( 'tutor_quiz/content/after', $quiz_id ); ?> </div> <?php } ?>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件