Skip to content

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
No credit card required
FreeRestrict & gate

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.

What you get
  • 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.
Copy these settings

The exact configuration

Enter these values and you have the setup live. Every field maps to a real ArraySubs setting.

SettingValue
[arraysubs_visibility]Any page/widgetshow="logged_in" | "logged_out" + fallback
[arraysubs_user]Any page/widgetfield="first_name" fallback="Welcome, visitor!"
[arraysubs_login] / [arraysubs_logout]Any page/widgettext, url, redirect attributes
NoteBehaviourVisibility checks login state only (not subscription)
Best for

When to use this setup

Personalized headers and nav
Landing-page CTAs by login state
Sidebar welcome widgets
Set up

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.

  1. 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 Shortcodes
  2. Add 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
From the manual

This recipe is built from these ArraySubs user-manual guides:

Good to know

Notes & edge cases

[arraysubs_visibility] checks login state only — for subscription/role gating use [arraysubs_restrict].
[arraysubs_user] output is plain text and HTML-escaped; fields include display_name, username, first_name, last_name, full_name.
Login/logout links hide themselves automatically based on the current login state.
Built with

Modules behind this recipe

The ArraySubs modules this setup relies on.

Free + Pro

Shortcodes

Display login/logout links, personalized user data, gated content, and Pro store credit forms anywhere.

Free + Pro

Profile Builder

Collect custom profile data, manage avatars, rearrange My Account navigation, and add custom endpoint pages.

Free + Pro

Customer Portal

Subscriber self-service inside WooCommerce My Account for viewing, cancelling, pausing, switching, and paying subscriptions.

FAQ

Questions, answered

No. [arraysubs_visibility] only checks logged-in vs logged-out. To gate by subscription, role, spend, or feature, use [arraysubs_restrict].

Yes. [arraysubs_user field="first_name" fallback="there"] shows the member’s first name, or your fallback for guests.
Paid Pro plans

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