From f8c4486401473638e0e789f24cf092f7eeb89b4d Mon Sep 17 00:00:00 2001 From: "Md.Harun-Ur-Rashid" Date: Wed, 4 Oct 2023 14:55:50 +0600 Subject: [PATCH 1/2] action hook added to extend tutor --- templates/single/common/header.php | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/single/common/header.php b/templates/single/common/header.php index c0e5024d6..7293999f3 100644 --- a/templates/single/common/header.php +++ b/templates/single/common/header.php @@ -84,6 +84,7 @@ if ( $show_mark_complete ) { tutor_lesson_mark_complete_html(); } + do_action( 'tutor_after_lesson_completion_button', $course_id, $user_id, $is_course_completed, $course_stats ); ?> Date: Wed, 4 Oct 2023 15:34:05 +0600 Subject: [PATCH 2/2] assignment edit button link logic updated --- templates/single/assignment/content.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/single/assignment/content.php b/templates/single/assignment/content.php index e83622992..0da24a5bc 100644 --- a/templates/single/assignment/content.php +++ b/templates/single/assignment/content.php @@ -516,8 +516,8 @@ class="tutor-attachment-file-close tutor-d-flex tutor-align-center"> $now || 0 == $time_duration['value'] ) ) : + $result = Assignments::get_assignment_result( $post_id, $user_id ); + if ( in_array( $result, array( 'pending', 'fail' ), true ) && ( $remaining_time > $now || 0 == $time_duration['value'] ) ) : ?>