Forum Replies Created
-
AuthorPosts
-
February 10, 2023 at 6:32 PM in reply to: ✅Translate "This field is required." on "mb_user_profile_login" shortcode #40475
Matej Mohar
ParticipantHi,
thanks for help. Although it's now a long time since I originally asked a question, I needed this again and I decided to write here my solution for anyone that would be in same dilemma. The answer was is almost correct and it pointed me in the right direction.I forgot to answer it last year, because I solved this some other way and I totally forgot about this question.
Because I was using
[mb_user_profile_info id="rwmb-user-info"]shortcode, I needed to create a filter like this:add_filter( 'rwmb_profile_info_fields', function( $fields ) { error_log(print_r($fields, true)); $fields['password']['attributes'] = [ 'title' => 'Username required text' ]; $fields['password2']['attributes'] = [ 'title' => 'Password required text' ]; return $fields; });October 26, 2022 at 10:16 PM in reply to: ✅Translate "This field is required." on "mb_user_profile_login" shortcode #38835Matej Mohar
ParticipantI use this shortcode: https://docs.metabox.io/extensions/mb-user-profile/#login-form
If you have any example it would be great rf if you can point me in the right direction.
Thanks.October 26, 2022 at 10:08 PM in reply to: ✅Translate "This field is required." on "mb_user_profile_login" shortcode #38833Matej Mohar
ParticipantThank you, I saw this thread but I can't figure it out. If I use [mb_user_profile_login], how can I add "validation" part to the field group settings?
I can see that there is a "rwmb_profile_login_fields" filter, but this is only for changing fields, not adding to the field group settings?Matej Mohar
ParticipantThank you for your replay. I then solved this problem with custom solution and will switch to metabox if it will become available anytime in the future.
Thank you and have a nice day.Matej Mohar
ParticipantIt's also not working for me so for now, I'm using @Joe solution. I can assure it was working before, so I guess there was an update in the meantime.
Best regards, Matej
-
AuthorPosts