LLMS_Forms_Dynamic_Fields::add_password_strength_meter( array[] $blocks,  $location )

Adds a password strength meter to a block list


Description Description

This function will programmatically add an html block containing the necessary markup for the password strength meter to function.

This will locate the user password block and output the meter immediately after the block. If the password block is within a group it’ll output it after the group block.


Parameters Parameters

$blocks

(Required) WP_Block list.


Top ↑

Return Return

(array[])


Top ↑

Source Source

File: includes/forms/class-llms-forms-dynamic-fields.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.1 Add aria-live=polite to ensure password strength is announced for screen readers.
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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