• Resolved ulises2010

    (@ulises2010)


    I am trying to customize the message that is given to users when they try to access witn inactive account, but I don’t see where to do it.

    I have found in user roles the message that is given when registering, but not the one that is given to the one who tries to login and has an inactive account

    Can you help me?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @ulises2010,

    UM does not have any setting or option to customize this message at this time.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ulises2010

    Could you please provide a screenshot of the text that you’re referring to? You can upload the screenshot via imgur.com and then share the image URL here so we can review it.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ulises2010

    ..Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

    Thread Starter ulises2010

    (@ulises2010)

    I’m so sorry, I don’t see the message

    https://ibb.co/7WSGRtW

    This is the screenshot with the message I want to modify

    • This reply was modified 3 years, 2 months ago by ulises2010.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ulises2010

    Do you have an English version of the message?

    Regards,

    Thread Starter ulises2010

    (@ulises2010)

    I’m sorry, but I only have an spanish version, but is the message when you try to login and you still don’t verify it. The message say something like:

    “Your account is waiting for your mail verification”

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ulises2010

    Are you using a translation plugin?
    Have you tried changing the text in Spanish with your translation plugin?

    You can override the English text with the code snippet below but you will still have to translate it to Spanish:

    function um_092321_hook_logincheck( $user, $username, $password ) {
    
    	if ( isset( $user->ID ) ) {
    
    		um_fetch_user( $user->ID );
    		$status = um_user( 'account_status' );
    
    		switch( $status ) {
    			case 'inactive':
    				return new WP_Error( $status, __( 'Your account has been disabled.', 'ultimate-member' ) );
    				break;
    			case 'awaiting_admin_review':
    				return new WP_Error( $status, __( 'Your account has not been approved yet.', 'ultimate-member' ) );
    				break;
    			case 'awaiting_email_confirmation':
    				return new WP_Error( $status, __( 'Your account is awaiting e-mail verification.', 'ultimate-member' ) );
    				break;
    			case 'rejected':
    				return new WP_Error( $status, __( 'Your membership request has been rejected.', 'ultimate-member' ) );
    				break;
    		}
    
    	}
    
    	return $user;
    
    }
    remove_filter( 'authenticate', 'um_wp_form_errors_hook_logincheck', 50, 3 );
    add_filter( 'authenticate', 'um_092321_hook_logincheck', 50, 3 );
    

    You need to modify the text in the above code. You can add the Code to your theme/child-theme’s functions.php file or use the Code Snippet plugin to run the code.

    Regards,

    • This reply was modified 3 years, 2 months ago by Champ Camba.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ulises2010

    ..Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help… ??

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Inactive account login message’ is closed to new replies.