Is your feature request related to a problem? Please describe.
Currently, there is no native or easy way to display dynamic information about the logged-in user within Gutenberg without relying on shortcodes or third-party membership plugins. I want to build a custom "My Account" page, and I need a seamless way to show the current user's personal details.
Describe the solution you'd like
I would like to propose a new Gutenberg block (e.g., User Profile Data Block) that automatically fetches and displays the information of the user who is currently logged in.
The block should allow the administrator to select which user fields to display via the block inspector sidebar.
Key Features:
- Dynamic Data Fetching: It must strictly show the data of the user currently viewing the page (
wp_get_current_user()).
- Supported Fields: * Display Name / First Name / Last Name
- Email Address
- Username
- User Avatar (Gravatar)
- Registration Date (Optional)
- Fallback State: A customizable message or redirection option if a non-logged-in user (guest) visits the page.
Describe alternatives you've considered
- Using classic WordPress shortcodes inside a Shortcode block, which feels outdated and breaks the full-site editing (FSE) experience.
- Using heavy membership plugins, which adds unnecessary bloat since I only need to display basic profile fields.
Additional context
This block is highly targeted for custom "My Account" dashboards, welcome sections on homepages, or client portals.
Suggested Block Controls (Sidebar):
| Control Type |
Function |
| Select Field |
Choose between Name, Email, Username, etc. |
| Toggle |
Show/Hide Avatar |
| Text Input |
Custom text prefix (e.g., "Welcome back, [Name]") |
| Text Area |
Guest fallback message (e.g., "Please log in to view your profile.") |
Is your feature request related to a problem? Please describe.
Currently, there is no native or easy way to display dynamic information about the logged-in user within Gutenberg without relying on shortcodes or third-party membership plugins. I want to build a custom "My Account" page, and I need a seamless way to show the current user's personal details.
Describe the solution you'd like
I would like to propose a new Gutenberg block (e.g.,
User Profile Data Block) that automatically fetches and displays the information of the user who is currently logged in.The block should allow the administrator to select which user fields to display via the block inspector sidebar.
Key Features:
wp_get_current_user()).Describe alternatives you've considered
Additional context
This block is highly targeted for custom "My Account" dashboards, welcome sections on homepages, or client portals.
Suggested Block Controls (Sidebar):