1. Home
  2. Filters
  3. Filter reference: wpforms_user_registration_email_user

apply_filters( 'wpforms_user_registration_email_user', array $email )

Filters email properties for new user emails sent from the User Registration addon.

Description

The wpforms_user_registration_email_user filter is applied, to an array contain email data, prior to the User Registration addon sending the new user email. It can be used to customize the properties of the email including the message sent to the user.

Parameters

$emails
(array) (Required) Properties of the email that will be generated

Source

wpforms-user-registration/class-user-registration.php

More Information

Below explains what is contained in the array and the context of how it is used.

$email = array(
	'address'    => $user->user_email,
	'subject'    => $subject,
	'message'    => $message,
	'user'       => $user,
	'password'   => $plaintext_pass,
	'activation' => $activation,
	'link'       => $link,
);
$email = apply_filters( 'wpforms_user_registration_email_user', $email );

$emails = new WPForms_WP_Emails;
$emails->send( $email['address'], $email['subject'], $email['message'] );
Updated on December 14, 2016

Was this article helpful?