• Resolved jrmelton1

    (@jrmelton1)


    I am curious if there is a filter that I can use to modify your registration password error message. For example, I would like to change the phrasing of “Weak – Do not you want to be protected? Make it stronger!”. I see how I can directly edit the plugin code to achieve this…but I was hoping maybe that by using a filter (if available) that I wouldn’t be taking steps that need to backtracked on future updates. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Zorem

    (@zorem)

    Hi @jrmelton1,

    I added a filter hook for the change password strength message in the registration form. So, if you want to change message. then you need to add below code in function.php file.

    /*
    * Change the message of the password strenght in registration form.
    */
    add_filter( 'ajaxlogin_register_password_message', 'cbr_add_custom_message_func', 30, 1 );
    function cbr_add_custom_message_func( $message ){
    	$message = sprintf( __( 'Write your custom meessage here' ) );
    	return $message;
    }

    Thanks πŸ™‚

    Thread Starter jrmelton1

    (@jrmelton1)

    Perfect. Exactly what I was hoping for. Thank you for this!

    John

    Plugin Author Zorem

    (@zorem)

    Sure, if you like the plugin, please add a review πŸ™‚
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Registration Password Message’ is closed to new replies.