Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Person_Handler::get_password_fields()

Retrieve an array of password fields.


Description Description

This is only used on the password rest form as a fallback when no "custom" password fields can be found in either of the default checkout or registration forms.


Top ↑

Return Return

(array[])


Top ↑

Source Source

File: includes/class.llms.person.handler.php

282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
private static function get_password_fields() {
 
    $fields = array();
 
    $fields[] = array(
        'columns'     => 6,
        'classes'     => 'llms-password',
        'id'          => 'password',
        'label'       => __( 'Password', 'lifterlms' ),
        'last_column' => false,
        'match'       => 'password_confirm',
        'required'    => true,
        'type'        => 'password',
    );
    $fields[] = array(
        'columns'  => 6,
        'classes'  => 'llms-password-confirm',
        'id'       => 'password_confirm',
        'label'    => __( 'Confirm Password', 'lifterlms' ),
        'match'    => 'password',
        'required' => true,
        'type'     => 'password',
    );
 
    $fields[] = array(
        'classes'      => 'llms-password-strength-meter',
        'description'  => __( 'A strong password is required. The password must be at least 6 characters in length. Consider adding letters, numbers, and symbols to increase the password strength.', 'lifterlms' ),
        'id'           => 'llms-password-strength-meter',
        'type'         => 'html',
        'min_length'   => 6,
        'min_strength' => 'strong',
    );
 
    return $fields;
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Removed optional parameters
3.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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