Support for custom video providers in community posts
Hello,
At the moment, community posts support video embedding by pasting a URL from YouTube, Vimeo, and possibly some other providers. However, I need to add support for custom video providers on my site.
I have already written a WordPress plugin that registers additional providers and enables embedding. This works correctly in Gutenberg and in the Classic Editor, and it also works inside FluentCommunity courses, where the standard WordPress embed mechanism appears to be used. However, the same URLs do not get embedded inside FluentCommunity community posts.
What I would like is behavior similar to the current YouTube embedding in community posts:
- automatic embedding from the pasted URL,
- and automatic preview/thumbnail support when posts are displayed as cards, similar to how YouTube thumbnails are shown now.
I am ready to implement this on my side, but I could not find any suitable hooks or extension points in the documentation for the post composer / feed embedding flow. I only found general hooks such as portal head/footer and some feed-related hooks in the developer docs.
Could you please point me in the right direction?
More specifically, I would appreciate guidance on any of the following:
- whether community post embeds use the standard WordPress oEmbed pipeline or a separate internal parser/renderer,
- whether there is a filter/action for processing pasted media URLs in feed posts,
- whether custom providers can be registered for the community post composer,
- and whether the thumbnail/card preview data can be extended for custom video providers.
If needed, I can also share example provider URLs, embed codes and details of how my plugin registers them in WordPress.
We use standard wordpress oEmbed pipeline so if your WordPress supports a provider it will work just fine.
Shahjahan JewelΒ Thanks fo clarity!
We updated our plugin to fully integrate with the standard WordPress oEmbed pipeline, not just editor-specific rendering paths.
Now it's compatible with FluentCommunity.
