vvbetai
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: display registration form fields in admin dashboardDoes anyone know of any plugin that can help displaying custom user fields in admin dashboard?
Forum: Fixing WordPress
In reply to: display registration form fields in admin dashboardThank you for sharing the link, the code is nicely documented. We are trying to build the site with minimum code. Is there some plugin that can be used to achieve the same?
Is there any plans to make this feature available? I am really looking for one of the options for new user approval:
1. Approve/reject link in email sent to admin
2. redistricted role, instead of full admin role, which can only access users for approve and reject.A related question to #2, is there a way to customize admin page, which will only see list of users for approve/reject.
Thank you
I am looking for the same feature, this will make approval process very efficient.
Thank you everyone, the example given in Ultimate Member doc for developer in How to is very useful.
Your code and um doc gave some clue and finally following code worked for me. Thank you.
function um_custom_validate_useremail( $key, $array, $args ) {
if ( isset( $args[$key] ) && $args[$key] !== ($args[‘user_email’])) {
UM()->form()->add_error( $key, __( ‘Please verify both emails matches.’, ‘ultimate-member’ ) );
}
}
add_action( ‘um_custom_field_validation_confirm_email’, ‘um_custom_validate_useremail’, 30, 3 );I noticed, my email meta key was not user_email. After fixing it, the form always gives error, even if email ID matches. There seems to be something simple that I am missing. Here is the content of registration form:
Title : Email address
Meta Key : user_email
Validate : Unique-EmailTitle : Confirm email
Meta Key : confirm_email
Validate : Custom Validation
Custom Action : confirm_emailCode inserted in Code Snippet:
function um_custom_validate_useremail( $args ) {
global $ultimatemember;
if ( isset($args[‘user_email’]) !== ($args[‘confirm_email’])) {
UM()->form()->add_error ( ‘confirm_email’, ‘Please verify both emails match’ );
}
}
add_action( ‘um_custom_field_validation_confirm_email’, ‘um_custom_validate_useremail’, 10, 3 );Yup, I selected ‘custom validation’ in the validate field and entered confirm_email in ‘custom action’ field.
Thanks @cyrfan
I tried your code, it accepted the form without any error, even when two emails IDs were not matching.
Forum: Plugins
In reply to: [Code Snippets] How to add confirm email in registration formIs there anyone who can help here?