AccountShortcode
\Benecaster\Shortcodes\AccountShortcode
Renders the subscriber account dashboard ([benecaster_account]). Detects whether a community feature is active to conditionally expose the display-name prompt, and writes a prompted-state user meta flag on render so the prompt only appears once per user unless re-triggered.
Methods
| Method | Visibility | Since | Description |
|---|---|---|---|
community_feature_active(): bool |
— | — | Returns true when any installed add-on has registered a community feature. Delegates to detect_community_feature(). |
detect_community_feature(): bool |
— | — | Checks for the presence of a registered community feature. Used by community_feature_active(). |
looks_auto_generated( string $display_name, WP_User $user ): bool |
— | — | Heuristic test — returns true when the display name looks like a system-generated value (e.g. email prefix, numeric user ID). Used to decide whether to surface the display-name prompt. |
Constants
| Name | Value | Description |
|---|---|---|
META_PROMPTED |
_benecaster_account_display_name_prompted |
User meta key written on the first render pass that shows the display-name prompt. |