LLMS_Person_Handler::get_lost_password_fields()
Retrieve fields for password recovery This is for the form that sends a password reset email
Description Description
Return Return
(array)
Source Source
File: includes/class.llms.person.handler.php
public static function get_lost_password_fields() { $gen_usernames = ( 'yes' === get_option( 'lifterlms_registration_generate_username' ) ); if ( $gen_usernames ) { $message = __( 'Lost your password? Enter your email address and we will send you a link to reset it.', 'lifterlms' ); } else { $message = __( 'Lost your password? Enter your username or email address and we will send you a link to reset it.', 'lifterlms' ); } return apply_filters( 'lifterlms_lost_password_fields', array( array( 'columns' => 12, 'id' => 'llms_lost_password_message', 'last_column' => true, 'type' => 'html', 'value' => apply_filters( 'lifterlms_lost_password_message', $message ), ), array( 'columns' => 12, 'id' => 'llms_login', 'label' => $gen_usernames ? __( 'Email Address', 'lifterlms' ) : __( 'Username or Email Address', 'lifterlms' ), 'last_column' => true, 'required' => true, 'type' => $gen_usernames ? 'email' : 'text', ), array( 'columns' => 12, 'classes' => 'llms-button-action auto', 'id' => 'llms_lost_password_button', 'value' => __( 'Reset Password', 'lifterlms' ), 'last_column' => true, 'required' => false, 'type' => 'submit', ), ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |