Sidebar Login
Sidebar Login adds a useful login widget which you can use to login from in the sidebar of your WordPress powered blog. Once a user logs in they are redirected back to the page they logged in from, rather than the admin panel (this is configurable). If you’d like to contribute code to the plugin you
Sidebar Login adds a useful login widget which you can use to login from in the sidebar of your WordPress powered blog.
Once a user logs in they are redirected back to the page they logged in from, rather than the admin panel (this is configurable).
If you’d like to contribute code to the plugin you can do so via GitHub .
If you’d like to contribute a translation, the project is hosted on WordPress.org .
Usage
Simply go to Appearance > Widgets and drag “sidebar login” to the sidebar of your choice. Within the widget are several options you can use for changing the titles or the links displayed to the user.
To use this widget in a template, call the_widget() with the Sidebar_Login_Widget class, for example the_widget( 'Sidebar_Login_Widget' ); .
Tags for titles + links
These tags can be used in the widget settings for titles + links and will be replaced at runtime.
- %username% – logged in users display name
- %userid% – logged in users ID
- %firstname% – logged in users firstname
- %lastname% – logged in users lastname
- %name% – logged in users firstname + lastname
- %nicename% – user nice name
- %site_url% – url of your site
- %admin_url% – url to WP admin
- %logout_url% – logout url
- %buddypress_profile_url% – BuddyPress Profile URL
- %bbpress_profile_url% – bbPress Profile URL
- %avatar% – User Avatar
Filter Reference
- sidebar_login_include_css – return false to not include the CSS stylesheet
- sidebar_login_widget_logged_in_links – An array of links shown when logged in.
- sidebar_login_widget_logged_out_links – An array of links shown when logged out.