loginout WordPress Filter Hook

The loginout hook is a WordPress hook that is triggered when a user logs in or out of the site. It is useful for performing actions such as creating a custom login or logout page, or triggering a specific action when a user logs in or out.

apply_filters( 'loginout', string $link ) #

Filters the HTML output for the Log In/Log Out link.


Parameters

$link

(string)The HTML link content.


Top ↑

More Information

loginout filters the HTML output for the Log In/Log Out link generated by the wp_loginout() function.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.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