Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.