This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Youzify - BuddyPress Redirect to Profile Page If Logged In User Goes to Login Page | |
**/ | |
add_action('template_redirect', 'yzc_template_redirect_login_to_loggedin_users', 10); | |
function yzc_template_redirect_login_to_loggedin_users() { | |
if ( is_user_logged_in() ) { |