loginout
Filters the HTML output for the Log In/Log Out link.
Usage
add_filter( 'loginout', 'wp_kama_loginout_filter' );
/**
* Function for `loginout` filter-hook.
*
* @param string $link The HTML link content.
*
* @return string
*/
function wp_kama_loginout_filter( $link ){
// filter...
return $link;
}
- $link(string)
- The HTML link content.
Changelog
| Since 1.5.0 | Introduced. |
Where the hook is called
loginout
wp-includes/general-template.php 399
echo apply_filters( 'loginout', $link );
wp-includes/general-template.php 402
return apply_filters( 'loginout', $link );