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.