March 2020
Beginner
660 pages
18h 28m
English
In the registration process, we set the activation status as Pending Activation. However, this value doesn't have any effect until we use it and allow or block the user from logging in. In step 5, we used the wp_authenticate_user filter with a callback function called wpccp_chapter5_login_validation.
Inside the function, we first check whether the proper user ID is set. Then, we retrieve the activation status from the wp_usermeta table by using the wpccp_user_activation_status key we used in the registration process. When the user has a pending activation, we use ...
Read now
Unlock full access