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
Return Return
(void)
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(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |