WordPress plugin intelligence profile

Sidebar Login

Easily add an ajax-enhanced login widget to your WordPress site sidebar.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version3.1.0
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.6 · PHP 7.4
Directory statusactive
Last directory update12 Oct 202621d ago
Active installations9K+Adoption metric — not a quality score
WordPress.org rating4.5 / 5 from 78 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Sidebar Login version 3.1.0 as active, updated 21d ago and tested up to WordPress 7.1.

Overview

About this plugin

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.

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.
  • sidebar_login_widget_display – Return false to hide the widget.
  • sidebar_login_widget_logged_in_title – The widget title shown when logged in.
  • sidebar_login_widget_avatar_size – The avatar size – defaulted to 48 (thats in px)
  • sidebar_login_widget_logged_out_title – The widget title shown when logged out.
  • sidebar_login_widget_form_args – Arguments for the wp_login_form function.
  • sidebar_login_widget_login_redirect – Redirect URL after login.
  • sidebar_login_widget_logout_redirect – the redirect after logging out.
  • sidebar_login_widget_register_url – The URL for registration links.
  • sidebar_login_widget_lost_password_url – The URL for lost password links.
  • sidebar_login_widget_wp_login_form – The HTML of the Login form.

Action Reference

  • sidebar_login_widget_start – Fired before the widget.
  • sidebar_login_widget_{logged_in || logged_out}_content_start – Fired before the widget content.
  • sidebar_login_widget_before_{logged_in || logged_out}_links – Fired before the links.
  • sidebar_login_widget_after_{logged_in || logged_out}_links – Fire after the links.
  • sidebar_login_widget_{logged_in || logged_out}_content_end – Fired after the widget content.
  • sidebar_login_widget_end – Fired after the widget.

Notes

  • After logging in, users are only redirected to pages on your site. To allow other hosts, use the allowed_redirect_hosts filter.
  • Due to AJAX not working across different domains (see same_origin_policy ), AJAX logins will be disabled if your site it non-SSL, but the FORCE_SSL_ADMIN constant is set to true. Instead it will fallback to a traditional POST.
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • login widget
  • sidebar login
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.6 · PHP 7.4
Update activity12 Oct 202621d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version3.0.13.1.0
WordPress compatibility5.5.207.1.3
WordPress requirement5.06.6
PHP requirement5.67.4
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.