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

Does anyone know how to override the BuddyPress logout URL with a custom one?

share|improve this question
up vote 0 down vote accepted

That’s the same as the regular WordPress logout URL. So you can use the same filter: 'logout_url'.

Sample code, not tested:

add_filter( 'logout_url', 'wpse_56866_logout_url' );
function wpse_56866_logout_url() 
    // set your URL here
    return 'http://example.com';
share|improve this answer
Awesome @toscho -- that was the solution. I greatly appreciate your answer! – frank13 Jun 29 '12 at 12:21

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.