• Hi!
    Ultimate Member is a great plugin and I use it on many of the websites I create for my clients. Recently there was a requirement from my client that they need OTP login on their site. Apart from this, they only want desktop users to have email verification process and mobile users can only verify their phone number and login (there need not be email verification for mobile users).
    So, my question is, as there is no functionality in Ultimate Member to enable OTP registration and I need to use another plugin for the same, is there any way that I can enable the email verification feature for one registration form and disable it for other? Right now if I enable the feature it applies to every registration form.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • @mihirkulkarni96

    You can try this code snippet where the Form ID’s 1234 and 5678 are excluded from email verification.

    Install into your active theme’s functions.php file
    or use the “Code Snippets” plugin.

    add_filter( "um_get_option_filter__checkmail_email_on", "um_get_option_filter__checkmail_email_on_custom", 10, 1 );
    
    function um_get_option_filter__checkmail_email_on_custom( $value ) {
    
        if( in_array( UM()->form()->form_id, array( '1234', '5678' ) )) return false;
        return $value;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘enable email verification for only one registration form’ is closed to new replies.