Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change subject of student_starts_course email to be correct regardless of the student's access date #7661

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading