Skip to content

Extending FluentCommunity ​

FluentCommunity is structured around WPFluent service providers, route files, controller classes, policies, and WordPress hooks.

Common Extension Points ​

Add a new module ​

  1. Create a module directory in Modules/.
  2. Register it from the module bootstrap used by FluentCommunity.
  3. Add any REST routes via a module-specific *_api.php file or module bootstrap.
  4. Reuse the existing policy classes or add a module-specific policy when the module needs its own access layer.

Add routes and controllers ​

  • Core routes live in app/Http/Routes/api.php.
  • Module routes live alongside the module, for example Modules/Course/Http/course_api.php.
  • Controllers should sanitize input with WordPress helpers and validate request data before persisting it.

Add hooks ​

  • Use the fluent_community/ prefix for new hooks.
  • Prefer action hooks for lifecycle events and filter hooks for payload customization.
  • Keep parameter lists stable because the hook reference pages are generated from the actual call sites.

Existing Modules ​

ModulePurpose
AuthInvitation, signup, and login flows.
CourseCourses, sections, lessons, and learner progress.
GutenbergFrontend rendering inside WordPress blocks.
IntegrationsFluentCRM, FluentCart, Fluent Forms, and Fluent Player bridges.
McpAn MCP server exposing community tools to AI agents, off until an administrator switches it on.
MigrationsBuddyBoss/BuddyPress migration tooling.
PushNotificationNotification fan-out for supported events.
ThemingTheme wrappers and headless portal rendering.

Pro Modules ​

The Pro plugin keeps its modules in app/Modules/, and each extends this plugin through the same hooks an add-on would use. Most are gated by a feature switch, so a module being present does not mean it is running.

ModulePurpose
CertificatesCourse certificates: templates, issuing on completion, manual issuing, public verification and Open Badges.
CloudStorageUploads pushed to S3-compatible storage, with signed URLs for private files.
CourseReviewStudent reviews and ratings on courses, with moderation and the aggregate shown on course cards.
DocumentLibraryDocument posts and their downloads, including signed links for stored files.
EmojiThe emoji picker and its assets in the portal composer.
FollowersMember following, and the feeds and counts that follow from it.
GiphyGIF search in the composer, rate limited per member.
IntegrationsPaymattic and the other commerce bridges that gate paid access.
LeaderBoardPoint scoring, leaderboard periods and the ranking screens.
McpPro's tools on the free plugin's MCP server, handed over through fluent_community/mcp/tools.
MediaGalleryA space's photo, video and audio gallery, built from what members already posted.
PwaThe installable progressive web app: manifest, service worker and install prompts.
QuizQuiz lessons: question types, attempt and time limits, scoring and instructor grading.
SeoSiteMapSitemaps, structured data and server-rendered pages for crawlers.
SpacePagesStatic, admin-authored pages inside a space, written in the block editor.
UserBadgeBadges on member profiles and posts.
WebhooksIncoming webhooks that grant or revoke access from another system.

FluentCommunity developer documentation