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:

Description

Retrieves the logout URL.Returns the URL that allows the user to log out of the site.

Related Functions

wp_logout, wp_login_url, wp_loginout, wp_guess_url, wp_footer

Top Google Results

User discussions

wpseek mobile