WPDev.one
Core Function
View Source on Trac ↗

wp_logout_url()

wp_logout_url( mixed $redirect = '' )

Retrieves the logout URL.

Parameters 0 required

Name / Type Description
$redirect
string

Path to redirect to on logout.

Return Value

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

Function Information

Since Version
2.7.0
Source File
wp-includes/general-template.php
Advertisement