May 2017
Beginner to intermediate
536 pages
14h 25m
English
Once the user clicks on the activation link, redirection will be made to the /user/activate URL of the application. So, we need to modify our controller with a new case for activation, as shown in the following code:
case 'activate': do_action( 'wpwaf_before_activate_user' ); $wpwaf->registration->activate_user(); do_action( 'wpwaf_after_activate_user' ); break;
Here, we have two actions, one before the activation function and one after the activation function. These actions can be used to alter the activation process as we did with displaying the registration form. We can use the wpwa_before_activate_user action to check certain conditions on the activation URL and then allow/deny the user to activate the account. ...
Read now
Unlock full access