• Resolved sayantansdas

    (@sayantansdas)


    Hi team,

    I am trying to find a way to redirect users to a custom profile page when clicked on the “Profile” link in the menu. This is a standard blog, not a BuddyPress or Woocommerce page.
    could you please help me achieve this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Muhammad Arslan

    (@wparslan)

    Hi @sayantansdas

    You can use this code filter in your child theme’s functions.php file to achieve your desired goal.
    It will change the profile link of the Login Logout menu to a custom link.

    add_filter( 'login_logout_menu_profile', 'loginpress_login_logout_menu_profile_link' );
    
    /**
     * Filter to Change the user profile redirect URL
     *
     * @return string Custom link to a user profile page
     */
    function loginpress_login_logout_menu_profile_link() {
    	return site_url() . '/custom_url';
    }

    Thank You ??

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect to a custom url for “Profile”’ is closed to new replies.