Adding this to my function.php file in the child theme folder did it for me:
add_action( 'wp_enqueue_scripts', 'my_strength_meter_localize_script' );
function my_strength_meter_localize_script() {
wp_localize_script( 'password-strength-meter', 'pwsL10n', array(
'empty' => __( 'But... it\'s empty!', 'theme-domain' ),
'short' => __( 'Too short!', 'theme-domain' ),
'bad' => __( 'Not even close!', 'theme-domain' ),
'good' => __( 'You are getting closer...', 'theme-domain' ),
'strong' => __( 'Now, that\'s a password!', 'theme-domain' ),
'mismatch' => __( 'They are completely different, come on!', 'theme-domain' )
) );
}
Related Posts:
- Editing ‘Password Reset’ E-mail
- How to apply the “retrieve_password_message” filter?
- How can I detect if a user changes their password?
- How to change/rewrite the lost password url?
- Change the default 10-day expiration for the password protected pages cookie
- How can I change the email that is inside the default email texts of wordpress?
- Prevent reset password specific user role
- What is the action hook to use if you want to capture the new password during password change?
- Which Filter Do I Use To Modify The Subject Of The Retrieve Password Notification Email?
- Better way to change the default password reset url with the woocommerce one?
- Change password reqts with NO plugin without breaking resetpass link?
- WordPress tag cloud add more links
- Removing an action, or dequeueing style – Both not working
- Move a file from a directory to another
- Correct way to filter get_pages() function
- I want to allow the use of a data-flw attribute in links in comments
- How can I replace an oEmbed URL in post with actual embed HTML
- Filter the_content to add something before each element?
- Replacing a deprecated filter ‘woocommerce_get_price’ with ‘woocommerce_product_get_price’
- How do you get specific tags from the_content?
- Add a filter inside an action init
- How to display the content HTML of a page without displaying the gallery code as well
- Is it possible to apply_filter on a wp_ajax_ action?
- Apply filters with multiple filters
- Filter by category and city for doctors and hospitals in wordpress
- Using add_filter to prepend content, result is out of order
- Remove Comment Author Link only for subscribers
- Why is overwriting $GLOBALS killing the_content()?
- Sorting products by price ( regular + sale price )
- get_posts() interrupt because of filter
- WooCommerce coupon hook argument NULL when using filter woocommerce_get_shop_coupon_data
- Create new custom field that calculates age
- How can I edit comment meta value before it is saved?
- Why current_user_can(‘edit_comment’) always true?
- Remove comments validation (remove filter?)
- How to query if meta_key does exist or not?
- Disable sanitize_file_name on upload without modifying functions.php
- Redirect after post deleted
- Remove Site Name from wp_title WITHOUT removing from attribute
- Plugin default settings hook
- How to stop filter from running on the index.php page?
- Filter Shortcodes when using get_page
- Usage of filters
- add_filter to the_content after apply_filters
- Where exactly does the edit_{taxonomy} hook fire?
- How to filter with dropdown in backend for custom data
- Is there any reason for the nested filters to be applied on the first case and not in the second one?
- Best practice: Custom Post Type / Filter / Load more
- How to Edit Ecommerce filters URL, h1, h2 , Title
- Filter Media by attached page or blog post in Library
- How to stop DOMDocument destroying embeds?
- Redirect an archive page to its relevant URL-friendly filtered page
- How to modify image caption in posts?
- Extend Nonce Lifetime for Specific Nonce Creation
- Run `wp_insert_post_data` on all posts
- Show uploaded pdf files dynamically and filter by month name
- How can I pass instance via apply_filters as a parameter?
- how to use substr with get_the_content()
- AJAX Post Filter
- Mystery line break
- Consult array data in REST API Filter
- WordPress add_filter to post_date
- Add filter return false not working
- How to add markup to the wp-custom-header div
- create a shortcode with acf including a filter
- How to take shortcode and content separately from a page?
- Display post after choice two taxonomy terms
- How to stop echoing gallery inside content?
- Having issue with dynamic data within restrict_manage_posts function
- how to filter datalist table of wordpress
- Ajax Filtering Pagination
- Custom permalink for attachment
- Overriding Generated Attachment Post URL
- Pagination while keeping the filters
- Apply a filter str_replace on specific caracters array in the_content()
- get_the_archive_title hook unwanted changes!
- Is there a function to edit Blogs contents in Blogs page?
- Filter on the day of the week from timestamp
- using filters on the function from class
- Put data in my-account/view-order/id/ page
- Can’t set properly WordPress add_filter function
- Hook inside a hook
- Filter WordPress Archive Widget to exclude posts with specific custom taxonomy term id
- Password protected Page add_filter to change the text doesn’t work
- apply_filters to $GLOBALS
- How to filter content in Dashboard?
- The title of an attachment is not working
- Removing a line from a WP core function (comment_template.php) – filter or other technique?
- How to remove a filter that is an anonymous object?
- add_filter not adding the filter
- Hide H1 Title using the_title filter
- Add class to all parent elements inside the_content
- Is this correct usage of filters in WordPress [closed]
- get_the_excerpt on mobile still displays continue reading
- Date filter for post query not filtering results when variable outside the function
- Passing variable from filter
- Filter image and text from post format
- Filter and Search
- Filter posts by multiple checkbox categories
- Remove pipe in views admin page filter