Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Redirect to custom page after logging out

On logout, redirect the user to a custom ‘see-you-soon’ page, using ‘logout_redirect’ filter.

function redirect_after_user_logout( $redirect_to, $requested_redirect_to, $user ) {
	return home_url( '/see-you-soon/' );
}
add_filter( 'logout_redirect', 'redirect_after_user_logout', 10, 3 );