• Resolved digiccdw

    (@digiccdw)


    Hi there,

    I am looking for a hook within the plugin to be used after the registration process to add a query parameter of the user’s username just created or ID so that on page load I need to fire a modal box and call in an iframe to do some process and sent the ID of the user to auto-approve it once it is done.

    I tried to use this based on the other topics but I think it is only a redirect when the use is logged in from what I saw in the code:

    add_filter( 'user_registration_redirect_from_registration_page', function( $redirect, $user ) {
        
        return 'https://www.ads-software.com/';
        
    }, 10, 2 );
    • This topic was modified 3 years, 2 months ago by digiccdw.
Viewing 1 replies (of 1 total)
  • Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @digiccdw,

    According to our understanding, you want the auto-approval feature with the specific page redirection. For this, you do not need to write any extra code for the redirection and use the user id for auto-approve.

    The user registration plugin already has provided such features. Please go to your dashboard >> User Registration form >> edit the form you have created and go to the form setting. You will find the user login option and redirection link placeholder in this setting area. Now Choose the user login option as auto-login after registration and add your redirection link to redirect the user to the specific page. For more clarification please check this screenshot https://prnt.sc/22akt53.

    Please elaborate on your requirements more clearly if you mean something else. We will get back to you accordingly.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘After registration redirect hooks’ is closed to new replies.