• LifterLMS
  • Knowledge Base
  • Academy
  • Blog
  • Podcast
  • Contributors

LifterLMS LifterLMS

Code Reference

  • Home
  • Code Reference
Skip to content
Filter by type:
Search
Browse: Home / Code Reference / Classes / LLMS_Shortcode_My_Account / LLMS_Shortcode_My_Account::lost_password()

Warning: This method has been deprecated.

LLMS_Shortcode_My_Account::lost_password()

Lost password template

Contents

  • Description
    • Return
    • Source
    • Changelog
  • Related
    • Uses
  • User Contributed Notes

Description #Description


Return #Return

(void)


Top ↑

Source #Source

File: includes/shortcodes/class.llms.shortcode.my.account.php

	public static function lost_password() {

		llms_deprecated_function( 'LLMS_Shortcode_My_Account::lost_password()', '3.25.1' );

		$args = array();

		if ( isset( $_GET['key'] ) && isset( $_GET['login'] ) ) {
			$args['form'] = 'reset_password';
			$args['fields'] = LLMS_Person_Handler::get_password_reset_fields( trim( sanitize_text_field( $_GET['key'] ) ), trim( sanitize_text_field( $_GET['login'] ) ) );
		} else {
			$args['form'] = 'lost_password';
			$args['fields'] = LLMS_Person_Handler::get_lost_password_fields();
		}

		llms_get_template( 'myaccount/form-lost-password.php', $args );

	}

Expand full source code Collapse full source code View on GitHub


Top ↑

Changelog #Changelog

Changelog
Version Description
3.25.1 This method has been deprecated.
1.0.0 Introduced.

Top ↑

Related #Related

Top ↑

Uses #Uses

Uses
Uses Description
includes/llms.functions.core.php: llms_deprecated_function()

Provide deprecation warnings

includes/class.llms.person.handler.php: LLMS_Person_Handler::get_password_reset_fields()
includes/class.llms.person.handler.php: LLMS_Person_Handler::get_lost_password_fields()

Retrieve fields for password recovery This is for the form that sends a password reset email

includes/functions/llms.functions.template.php: llms_get_template()

Get Template Part


Top ↑

User Contributed Notes #User Contributed Notes

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





Permalink:
© 2014 - 2019 LifterLMS · Privacy Policy · Terms and Conditions