Skip Navigation

[Résolu] Display notification messgae on login form

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
How to dispaly custom error message with login form created using [wpv-login-form] shortcode.

Solution:
Well - there is no native feature available to customize the error message for login form created using [wpv-login-form] shortcode.

[wpv-login-form] shortcode uses the standard WordPress Login Form.

To customize the error message please check the solution I've shared with the following reply:
https://toolset.com/forums/topic/display-notification-messgae-on-login-form/#post-563215

Relevant Documentation:
https://codex.wordpress.org/Function_Reference/wp_login_form

This support ticket is created Il y a 7 années et 3 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par marcB-6 Il y a 7 années et 3 mois.

Assisté par: Minesh.

Auteur
Publications
#563048

I have added "user state" field for a user, It is having user state pending,active,inactive,decline..now, If a user logs in with an inactive account the user gets a notification that is stating that they should contact the support desk.

I am using [wpv-login-form] to display login form.

Thanks

#563134

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - as you can see with our Docs for shortcode [wpv-login-form], there is no callback available to send the email.
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-login-form

From where the email is sent? I just remember that you make an inquiry regarding "user login first time" and I shared some custom solution tutorial link here:
=> https://toolset.com/forums/topic/user-logs-in-for-the-first-time/

Is there any CRED form involved here or any code using which you are sending emails?

#563146

Hi Minesh,

My question is I would like to check status of user..i.e user entering email and password, both are correct now I would like to check his status (pending,active,inactive,decline) if its is "Inactive"..I would like to show error message "please contact support desk"

Thanks

#563215

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Ok - I understand now what you are looking for.

To customize the error message with [wpv-login-form] you need to use native WordPress hooks as [wpv-login-form] is uses the standard WordPress login form.
=> https://codex.wordpress.org/Function_Reference/wp_login_form

Again this is not a Toolset supported native feature to customize validation for the native WordPress login page BUT I can share you another tutorial that might help you. Please check the following tutorial that might help you to implement the custom error messages:
=> https://code.tutsplus.com/tutorials/build-a-custom-wordpress-user-flow-part-1-replace-the-login-page--cms-23627

More info:
=> https://wordpress.stackexchange.com/questions/115539/custom-login-errors-and-variables-i-can-use
=> https://codex.wordpress.org/Plugin_API/Filter_Reference/login_errors

#563224

Thanks