sainiinder08
Forum Replies Created
-
Hey missveronica ,
Thank you so much for the help.The code with 999 has worked for me. Their were another plugin which was conflicting.So all good now.
Thanks,
Indy
Hey missveronica,
Thanks for the help!
The checkbox validation is now working for admin role not for custom roles? Can you advise on it?
Thanks,
Indy
Hey missveronica
Thank you for the help. Yes. I am uisng “termofuse” meta key and still facing the issue.
Here is my code:
add_action( ‘um_submit_form_errors_hook_login’, ‘custom_submit_form_errors_hook_login_checkbox’, 999, 1 );
function custom_submit_form_errors_hook_login_checkbox( $submitted_data ) {
if ( ! isset( $submitted_data[‘termofuse’] )) {
UM()->form()->add_error( ‘termofuse’, __( ‘You must accept our policy before login’, ‘ultimate-member’ ) );
}
}
Thank you missveronica for your help.I ‘ve tried the code however its not working .
Hey Team,
Can i please get any response on this please?
Thanks,
Inder
- This reply was modified 1 year, 2 months ago by sainiinder08.
- This reply was modified 1 year, 2 months ago by sainiinder08.