Skip to content

Instantly share code, notes, and snippets.

@SirDarcanos
Last active February 23, 2016 13:12
Show Gist options
  • Save SirDarcanos/d8258ff0984d5f2c6061 to your computer and use it in GitHub Desktop.
Save SirDarcanos/d8258ff0984d5f2c6061 to your computer and use it in GitHub Desktop.
add_filter( 'wc_password_strength_meter_params', 'my_strength_meter_custom_strings' );
function my_strength_meter_custom_strings( $data ) {
$data_new = array(
'i18n_password_error' => esc_attr__( 'Come on, enter a stronger password.', 'theme-domain' ),
'i18n_password_hint' => esc_attr__( 'The password should be at least seven characters long.', 'theme-domain' )
);
return array_merge( $data, $data_new );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment