bbp_get_logout_link( string $redirect_to = '' )

Return the logout link

Description

Parameters

$redirect_to

(string) (Optional) Redirect to url

Default value: ''

Return

(string) The logout link

Source

File: bp-forums/common/template.php

	function bbp_get_logout_link( $redirect_to = '' ) {
		return apply_filters( 'bbp_get_logout_link', '<a href="' . wp_logout_url( $redirect_to ) . '" class="button logout-link">' . esc_html__( 'Log Out', 'buddyboss' ) . '</a>', $redirect_to );
	}

Changelog

Changelog
Version Description
bbPress (r2827) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.