Hub System
The Hub system is powered by the Workspaces plugin which provides navigation taxonomy for organizing pages into portals.
Plugin
| Plugin | Repository | Purpose |
|---|---|---|
| Workspaces | derintolu/workspaces | Workspace taxonomy for organizing pages into portals |
Features
Implemented
| Feature | Description |
|---|---|
| Workspace Taxonomy | Organizes pages into My Hub, Marketing, Learning |
| Workspace Objects | Navigation items with Lucide icons |
| REST API | Endpoints for workspace data |
Planned
| Feature | Description |
|---|---|
| Agent Hub | Partner/realtor portal |
| Partner Hub | Business partner portal |
URLs
| URL | Purpose |
|---|---|
/me/ | My Hub dashboard |
/marketing/ | Marketing workspace |
/marketing/lead-pages/ | Lead pages dashboard |
/learning/ | Learning workspace |
Workspaces Plugin
Taxonomy Structure
workspace (taxonomy)
├── my-hub
├── marketing
└── learningPost Type: Workspace Object
Navigation items assigned to workspaces.
| Field | Purpose |
|---|---|
| Title | Display name |
| Icon | Lucide icon name |
| URL | Link destination |
| Order | Sort position |
REST API
Base: /wp-json/workspaces/v1/
| Endpoint | Method | Description |
|---|---|---|
/workspaces | GET | List all workspaces |
/workspaces/{slug} | GET | Get workspace with objects |
/objects | GET | List all workspace objects |
Dependencies
- frs-wp-users - User profile data
- Workspaces theme - Sidebar frame and navigation
- FluentCRM - Contact sync (optional)
- FluentBooking - Calendar integration (optional)
File Structure
workspaces/
├── includes/
│ ├── class-workspaces.php # Taxonomy registration
│ ├── class-workspace-objects.php # Post type registration
│ ├── class-workspace-rest-api.php # REST endpoints
│ └── class-lucide-icons.php # Icon handling
└── admin/Related Documentation
- frs-lead-pages - Lead page generation
- frs-wp-users - User profiles
- Workspaces Theme - Portal frame/sidebar