Adding a strength meter to Password Fields

If you want to add a strength meter to a password field, you can add the display_force flag to its attributes array.

Here is a snippet:

add_filter('wp_ultimo_registration_steps', 'add_strength_meter');

function add_strength_meter($steps) {

// Add the flag to the user_pass field
$steps['account']['fields']['user_pass']['display_force'] = true;

return $steps;

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.