LLMS_Email_Reset_Password::init( array $args = array() )

Initializer


Parameters Parameters

$args

(array) (Optional) associative array of user related data for the email to be sent

Default value: array()


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/emails/class.llms.email.reset.password.php

	public function init( $args = array() ) {

		$this->add_recipient( $args['user']->ID );

		$this->body    = $this->get_body_content( $args );
		$this->subject = __( 'Password Reset for {site_title}', 'lifterlms' );
		$this->heading = __( 'Reset Your Password', 'lifterlms' );

		$this->add_merge_data(
			array(
				'{user_login}' => $args['login_display'],
			)
		);

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.