WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am setting up a new membership website. I only have one issue that I can't resolve. Once a member is logged I don't want them to go to the dashboard to edit their profile but instead to the website profile page.

Where and how do I change this?

share|improve this question

The filter hook edit_profile_url does that. It returns the URL and provides the User ID so you can use it for some customization of the new URL.

add_filter( 'edit_profile_url', 'modify_profile_url_wpse_94075', 10, 3 );

 * http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/link-template.php#L2284
 * @param string $scheme The scheme to use. 
 * Default is 'admin'. 'http' or 'https' can be passed to force those schemes.
function modify_profile_url_wpse_94075( $url, $user_id, $scheme )
    // Makes the link to http://example.com/custom-profile
    $url = site_url( '/custom-profile' );
    return $url;

Q&A of interest: Where to put my code: plugin or functions.php?

share|improve this answer
thanks so much. That worked perfectly. – Sharon Apr 1 '13 at 3:09
This doesn't work at all, either in functions.php or a plugin. I can't even get a sample output from the hook. Is the hook deprecated? – Ivar Feb 6 '14 at 20:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.