Skip to content

Commit

Permalink
Merge pull request #7661 from Automattic/fix/student-started-course-e…
Browse files Browse the repository at this point in the history
…mail-subject

Change subject of student_starts_course email to be correct regardless of the student's access date
  • Loading branch information
Imran92 authored Aug 7, 2024
2 parents 15275e8 + 9336e3c commit a350062
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog/fix-student-started-course-email-subject
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Changed subject of student_starts_course from 'started' to 'enrolled in' to make it correct regardless of access date
4 changes: 2 additions & 2 deletions includes/internal/emails/class-email-seeder-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public function get_email_data(): array {
],
'student_starts_course' => [
'types' => [ 'teacher' ],
'subject' => __( '[student:displayname] started [course:name]', 'sensei-lms' ),
'description' => __( 'Course Started', 'sensei-lms' ),
'subject' => __( '[student:displayname] enrolled in [course:name]', 'sensei-lms' ),
'description' => __( 'Course Enrolled', 'sensei-lms' ),
'content' => '<!-- wp:pattern {"slug":"sensei-lms/student-starts-course"} /-->',
],
'student_completes_course' => [
Expand Down

0 comments on commit a350062

Please sign in to comment.