Hi,
I’m building a Service Provider portal with Bricks.
The system includes registration, login, and a
frontend dashboard. Here’s what I have so far and
my questions:
── REGISTRATION ──
- Custom register form with Bricks Form element
- Action: User Registration → Role: service_provider
- Admin receives email notification with link to
wp-admin/user-edit.php?user_id={id} - SP redirects to /pending after register
Q1: Is wp_update_user() in user_register hook
the best way to notify admin with a direct user link?
── LOGIN ──
- Custom login page with Bricks Form element
- Redirect to /dashboard after login
- Using Page Conditions to redirect logged-in users
away from /login page
Q2: Is Bricks Page Conditions the recommended way
to protect pages and redirect logged-in users?
── DASHBOARD ──
- /dashboard — Overview
- /dashboard/profile — Edit Profile
Q3: There’s no native “Update User” action in
Bricks Forms. Is “Custom” action + wp_update_user()
in functions.php the recommended approach for
frontend profile editing?
Q4: What’s the best way to pre-fill form fields
with current user data? Currently using dynamic
tags like {wp_user_first_name} as Default Value.
Running Bricks 2.x
Thanks in advance!