wp_logout_url

Advertisement

Summery Summery

Retrieves the logout URL.

Syntax Syntax

wp_logout_url( string $redirect = '' )

Description Description

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

Parameters Parameters

$redirect

(string) (Optional) Path to redirect to on logout.

Default value: ''

Return Return

(string) The logout URL. Note: HTML-encoded via esc_html() in wp_nonce_url().

Source Source

File: wp-includes/general-template.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.