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.
More Information
loginout filters the HTML output for the Log In/Log Out link generated by the wp_loginout() function.
Source
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |