If I click on sign in then it should go to the login page.
The issue is that when I put the link then it goes to redirect_to
home page, but I want to go on user profile page instead.
I don’t want to use a plugin to redirect to profile page after login.
I have code for user profile – <a href="<?php echo bp_loggedin_user_domain(); ?>/profile/edit/"><span>My Profile</span></a>
And i want to put this link into <input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect_to); ?>" />
Is this possible? Are there other suggestions?
If you’re using the built in function to create the login box, one of the parameters is redirect. wp_login_form function reference
To get your profile link, check when you’re logged in as admin. The link is the same, but the options presented are different. Default is yoursite.com/wp-admin/profile.php
You can write code in function in
functions.php
and add action to thisIF you wants to use plguin bp redirect to profile go here: