Skip to content

Commit

Permalink
Set heading for user registration emails
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Jan 17, 2018
1 parent bf0d0dc commit a7249c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions includes/admin/emails/class-donor-register-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ function get_default_email_message() {
);
}

/**
* Setup email data
*
* @since 2.0
*/
public function setup_email_data() {
Give()->emails->__set( 'heading', esc_html__( 'New User Registration', 'give' ) );
}

/**
* Setup and send new donor register notifications.
Expand All @@ -105,6 +113,8 @@ function get_default_email_message() {
* @return string
*/
public function setup_email_notification( $user_id, $user_data ) {
$this->setup_email_data();

$this->recipient_email = $user_data['user_email'];
$this->send_email_notification( array(
'user_id' => $user_id,
Expand Down
2 changes: 2 additions & 0 deletions includes/admin/emails/class-new-donor-register-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public function setup_email_data() {
* @return string
*/
public function setup_email_notification( $user_id, $user_data ) {
$this->setup_email_data();

$this->send_email_notification( array(
'user_id' => $user_id,
) );
Expand Down

0 comments on commit a7249c5

Please sign in to comment.