The Assignment Deadlines Pro for LearnDash plugin provides the asdld_modify_comment_reply_email_content filter hook, which allows developers to customize the email content sent when replying to comments made on assignments.
This filter is triggered just before the reply email is sent to the student, enabling you to dynamically modify or enhance the email body.
This filter is triggered just before the reply email is sent to the student, enabling you to dynamically modify or enhance the email body.
Usage Example
|
1 2 3 4 5 6 7 8 |
add_filter('asdld_modify_comment_reply_email_content', 'customize_comment_reply_email', 10, 2); function customize_comment_reply_email($message, $comment) { // Modify the email body $message .= "\n\nThank you for your feedback, " . $comment->comment_author . "!"; return $message; } |
Parameters
- message (string)
The current body of the reply email that will be sent in response to a comment on an assignment. - comment (WP_Comment object)
The comment object associated with the assignment comment. This includes details such as the commenter’s name, email, and the comment content.