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.
Return Return
(array[])
Source Source
File: includes/forms/class-llms-forms-dynamic-fields.php
Changelog Changelog
Version | Description |
---|---|
5.0.1 | Add aria-live=polite to ensure password strength is announced for screen readers. |
5.0.0 | Introduced. |