Where to put thme-my-login-custom file?
-
We want to just have the ‘logout’ showing when a user gets logged in. They are sharing documents to employees, and don’t need ‘dashboard’ or ‘profile’
I;ve created the theme-my-login-custom.php and its contents are:<?php function tml_redirect_login_page() { if ( is_user_logged_in() && Theme_My_Login::is_tml_page( 'login' ) ) { $redirect_to = 'your url here'; wp_redirect( $redirect_to ); exit; } } add_action( 'tml_request', 'tml_redirect_login_page' );
This is what you had in a help article earlier
But the dashboard and profile link are still showing. What am I doing wrong?The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Where to put thme-my-login-custom file?’ is closed to new replies.