Description
Filter hook to filter the user’s sidebar status when logged in.
The generated sidebar status is passed to the filter. You can used this, edit it, or add to it ahead and/or behind.
Usage
add_filter( 'wpmem_sidebar_status', 'my_sidebar_status' );
function my_sidebar_status( $string )
{
/*
$string comes in as an html string of:
<p>You are logged in as {username}<br />
<a href="http://yoursite.com/?a=logout">
click here to logout</a></p>
You can do something here to filter that,
change it, or append to it.
*/
return $string;
}
Examples
- Sidebar status filter advanced demo [ members only ]
- Sidebar login status [ members only ]
- Sidebar login filter advanced example [ members only ]
- Add an avatar to the sidebar login [ free ]
