logout_url WordPress Filter Hook

The logout_url hook allows you to change the URL that is used when a user logs out of your WordPress site.

apply_filters( 'logout_url', string $logout_url, string $redirect ) #

Filters the logout URL.


Parameters

$logout_url

(string)The HTML-encoded logout URL.

$redirect

(string)Path to redirect to on logout.


Top ↑

More Information

This filter is applied to the url returned by the function wp_logout_url().


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More