wp_logout_url
wp_logout_url ( $redirect = '' )
Parameters:- (string) redirect Path to redirect to on logout.
Returns:- (string) The logout URL. Note: HTML-encoded via esc_html() in wp_nonce_url().
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Retrieves the logout URL.Returns the URL that allows the user to log out of the site.