Log Out Redirect to Home Page PHP Code? currently use below

Log Out Redirect to Home Page PHP Code?

currently use below to log in redirect to buddypress profile page. any suggestions on additional php to redirect to home page after logging out?

function bp_homepage_to_profile() {
global $bp;
if(is_user_logged_in() && bp_is_front_page()) {
wp_redirect( $bp->loggedin_user->domain );
}
}
add_action('wp','bp_homepage_to_profile');