Skip to main content

v1.4.0

· 2 min read
Konstantin Brazhnik
Senior Full Stack Engineer @ Yoko Co

Administrators can now choose where members land after they sign in, and the default Member and Non-Member roles get keys that role editors can save. Neither change does anything on an existing site until someone switches it on.

Adds​

  • [ADMIN] A Login Landing Page setting under General Settings. Every member who signs in through the AMS is sent to that page, instead of back to wherever their sign-in started. Roles can have a page of their own, so members and non-members can land in different places; a member holding several listed roles goes to the first one. Leave it blank and nothing changes. A page on another site is used only when WordPress is allowed to redirect there, so a typo cannot send members off to someone else's site. The amsc_login_landing_url filter can make exceptions, for example letting administrators return to where they came from.
  • wp amsc roles normalize moves a site from the old Member and Non-Member role keys to lowercase ones. It keeps each role's capabilities and display name, moves every user who holds it, and rewrites the role mappings, the SSO role and the landing pages that point at it. --dry-run shows what would change without writing anything, and the command warns if any user is left on the old role.

Changes​

  • New sites create the default roles as member and non-member, still labelled "Member" and "Non-Member". Role editors such as the Members plugin lowercase a role's key when they save it, so the old mixed-case keys could be seen there but never saved. Sites that already have the mixed-case roles keep granting them until an administrator runs the command above.