bbp_get_logout_link( string $redirect_to = '' )

Return the logout link


Description Description


Parameters Parameters

$redirect_to

(Optional) Redirect to url redirect to url

Default value: ''


Top ↑

Return Return

(string) The logout link


Top ↑

Source Source

File: includes/common/template.php

	function bbp_get_logout_link( $redirect_to = '' ) {

		// Build the link
		$link = '<a href="' . wp_logout_url( $redirect_to ) . '" class="button logout-link">' . esc_html__( 'Log Out', 'bbpress' ) . '</a>';

		// Filter & return
		return apply_filters( 'bbp_get_logout_link', $link, $redirect_to );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.