LLMS_Shortcode_My_Account
LLMS_Shortcode_My_Account class.
Description Description
Source Source
File: includes/shortcodes/class.llms.shortcode.my.account.php
class LLMS_Shortcode_My_Account { /** * Get shortcode content * * @param array $atts * @return array $messages */ public static function get( $atts ) { return LLMS_Shortcodes::shortcode_wrapper( array( __CLASS__, 'output' ), $atts ); } /** * Lost password template * @return void * @since 1.0.0 * @version 3.25.1 * @deprecated 3.25.1 */ 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 ); } /** * Determines what content to output to user based on status * * @param array $atts array of user submitted shortcode attributes. * @return void * @since 1.0.0 * @version 3.25.1 */ public static function output( $atts ) { $atts = shortcode_atts( array( 'login_redirect' => null, ), $atts, 'lifterlms_my_account' ); lifterlms_student_dashboard( $atts ); } }
Expand full source code Collapse full source code View on GitHub
Methods Methods
- get — Get shortcode content
- lost_password — Lost password template — deprecated
- output — Determines what content to output to user based on status