Hi @rehatiere007 ! There are some plugins that redirect users to specific page after login. Maybe this one is usefull: https://ww.wp.xz.cn/plugins/peters-login-redirect/
Hi @gtamborero ,
thank you very much for your answer. I have tried this plugin and also Sky Login Redirect (both in the free version). However, the redirect did not work with them. The process still ends on the confirmation page.
I will ask the developers of these two plugins whether it works in principle or whether it needs something special for it to work.
Please read readme.txt carefully.
It contains the following code for redirection.
/** ==================================================
* Login user after redirect for Magic Login Mail
*
* @param string $url URL.
* @param int $user_id User ID.
* @return $url
*/
add_filter( 'magic_login_mail_after_login_redirect', 'redirect_url_login_users', 10, 2 );
function redirect_url_login_users( $url, $user_id ){
/* your code */
return $url;
}
Hi @katsushi-kawamori ,
thank you for your answer 🙂 . I had read through the hooks, but was not sure, as I am still relatively new to wordpress and programming.
Regards