Personalize by login state
Greet members and prompt guests — show the right content and a personal touch based on whether someone is signed in.
- Logged-in vs out
- Greet by name
- Login/logout links
Small personalization lifts conversion. [arraysubs_visibility] shows or hides content by login state, [arraysubs_user] greets members by name (with a fallback for guests), and [arraysubs_login]/[arraysubs_logout] render the right link. This recipe personalizes headers, CTAs, and widgets.
- Show guests a login CTA and members a greeting.
- Greet members by name with a guest fallback.
- Render correct login/logout links automatically.
- Personalize headers, landing pages, and widgets.
The exact configuration
Enter these values and you have the setup live. Every field maps to a real ArraySubs setting.
| Setting | Value |
|---|---|
| [arraysubs_visibility]Any page/widget | show="logged_in" | "logged_out" + fallback |
| [arraysubs_user]Any page/widget | field="first_name" fallback="Welcome, visitor!" |
| [arraysubs_login] / [arraysubs_logout]Any page/widget | text, url, redirect attributes |
| NoteBehaviour | Visibility checks login state only (not subscription) |
When to use this setup
Set it up in 2 steps
A step-by-step guide drawn from the ArraySubs user manual. Open the linked page for the full walkthrough and screenshots.
Swap content by login state
Wrap guest content in [arraysubs_visibility show="logged_out"] and member content in [arraysubs_visibility show="logged_in"], using fallbacks as needed.
Account ShortcodesAdd a greeting and links
Use [arraysubs_user field="first_name" fallback="there"] for a greeting and [arraysubs_login]/[arraysubs_logout] for the right link.
Account Shortcodes
Notes & edge cases
Modules behind this recipe
The ArraySubs modules this setup relies on.
Shortcodes
Display login/logout links, personalized user data, gated content, and Pro store credit forms anywhere.
Profile Builder
Collect custom profile data, manage avatars, rearrange My Account navigation, and add custom endpoint pages.
Customer Portal
Subscriber self-service inside WooCommerce My Account for viewing, cancelling, pausing, switching, and paying subscriptions.
Related setups to explore
Other configurations you can build with the same modules.
Inline content gating (shortcode)
Wrap just part of a page with [arraysubs_restrict] — public intro, gated premium section, all on one page.
Route login through My Account
Send wp-login.php visits to WooCommerce My Account so customers log in and register on your branded page.
Restrict pages & posts by plan
Gate any page, post, or custom post type to subscribers — show a custom message to everyone else.
Questions, answered
Unlock the complete Pro stack
Start on the free-forever core today, then choose a paid Pro plan when you need the advanced Pro feature set.
No credit card required · Annual and lifetime options available
