Description
This filter is deprecated as of plugin version 3.4.0; use wpmem_login_widget_status instead.
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; }
Code Snippet Library [Subscriber Content]
- Customizing form fields in WP-Members 3.1.7
- Customized sidebar widget
- Sidebar status highlight username
- Sidebar status filter advanced demo
- Sidebar login status
- Sidebar login filter advanced example
- Add an avatar to the sidebar login
See a list of all filter and action hooks