LLMS_Email_Reset_Password::get_body_content( array $data )

Custom content for the password reset email


Parameters Parameters

$data

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


Top ↑

Return Return

(void)


Top ↑

Source Source

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

	public function get_body_content( $data ) {

		$url = esc_url(
			add_query_arg(
				array(
					'key'   => $data['key'],
					'login' => rawurlencode( $data['user']->user_login ),
				),
				llms_lostpassword_url()
			)
		);

		ob_start();
		llms_get_template(
			'emails/reset-password.php',
			array(
				'url' => $url,
			)
		);
		return ob_get_clean();

	}


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.